projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change signal names in ExecWrapper to not collide with stdout/stderr (MSVC hates...
[quassel.git]
/
src
/
common
/
identity.cpp
diff --git
a/src/common/identity.cpp
b/src/common/identity.cpp
index
2652098
..
1978ebe
100644
(file)
--- a/
src/common/identity.cpp
+++ b/
src/common/identity.cpp
@@
-88,7
+88,10
@@
QString Identity::defaultNick() {
nick = shortUserName;
#elif defined(Q_OS_UNIX)
- QString userName = getlogin();
+ QString userName;
+ struct passwd *pwd = getpwuid(getuid());
+ if(pwd)
+ userName = pwd->pw_name;
if(!userName.isEmpty())
nick = userName;