New nick autocreation doesn't work
I updated to the Feb 11 snapshot. Purged the system and deleted the quassel dir in .config. The new identity I got had the correct real name, but the nick was still quassel###. I deleted, tried again, and got a quassel### with a different number, so I know it wasn't just something old hanging around.
#2 Updated by kitterma almost 15 years ago
Perhaps. Using Python (sorry, don't do C++), I found three potential ways to get my login. Two worked:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 2] No such file or directory
The Python documentation recommends using the environment variable LOGNAME for this:
#3 Updated by Sputnick almost 15 years ago
- Status changed from New to Assigned
- Assignee set to Sputnick
- Target version set to 0.4.0
Wow. And here I was, thinking that any Linux system should implement POSIX at least... very strange. Would be interesting to know where that comes from (or if it's maybe just a py issue? But the facts seem to indicate that this call is indeed missing...)
Could you please check if you have a manpage for that?
man 3 getlogin
If I can't assume full POSIX to be present on all Linux systems, I will at least add a fallback, but first I'd like to get to the root of this issue.