Version: (using KDE 4.0.1) Installed from: Compiled From Sources Compiler: 4.1.2 OS: Linux Checking the option to remember the last username in "systemsettings -> login manager" does not have any effect. I've double-checked kdmrc and the following line is inlcuded: "PreselectUser=Previous" After Reboot/Logoff KDM is supposed to preselect the previous user, but it simply doesn't. This occurs in standard and themed mode. I remember this to work in KDE3.
*** This bug has been marked as a duplicate of 144043 ***
How is this a duplicate of 144043? 144043 covers KDE 3.x and the reporter stated that > It works like expected when logging in locally . But here it does _not_ work like expected when logging in locally. I can confirm that this worked on the same machine with the same setup in KDE 3.x! This is more of a KDE4-issue than a duplicate of the KDE3.x-bug, which covers different aspects of kdm-problems.
would you bet? in which section of kdmrc is the PreselectUser=Previous?
This is the section: [X-:*-Greeter] AllowClose=false DefaultUser=daniel FocusPasswd=true LoginMode=DefaultLocal PreselectUser=Previous My entire kdmrc can be found here: http://www.tu-chemnitz.de/~klada/misc/kdmrc Again: I just have a local machine with local login through pam_unix/shadow.
hmm. so the usual drill: logs with -debug 7. details can be found in the kdm README.
log from kdm: http://www-user.tu-chemnitz.de/~klada/misc/kdm-log.txt syslog: http://www-user.tu-chemnitz.de/~klada/misc/syslog-kdm.txt
i can't find anything indicative of the problem in the log ... please have a look (ls -l and cat) at /var/lib/kdm/kdmsts shortly after a successful login. does it seem to be updated? with the right content?
On my system there is no kdmsts file. I am using Gentoo Linux an even in /usr/kde/4.0 I cannot find this file.
this kinda sound like a problem. :) does the directory exist? can you successfully create files in it? nb: i wonder how the "Wallpaper" option got into your kdmrc ...
I've created the dir manually: mkdir -p /var/lib/kdm/ touch /var/lib/kdm/kdmsts chmod -R a+rwx /var/lib/kdm/ And now it works. So I wonder why kdm did not create the dir automatically... My access rights for /var/lib are: "drwxr-xr-x 19 root root" an kdm is started as root.
OK, I figured out that "mkdir -p /var/lib/kdm/" is sufficient, then everything works correctly. Why don't you just let kdm issue this command automatically (if the dir does not exist)?
so this is not a dupe ...
... but an installation error. kdm does not do this, because the genkdmconf program - which is executed during installation - takes care of that. you probably installed as a regular user into a directory which requires no special permissions. this made some necessary initializations of system files fail. i'm wondering what should change: - kdm could just complain if it is missing - kdm could silently create that dir. this is ugly, as it potentially hides further problems. anyway, - kdm could do it itself - kconfig could be changed to create missing dirs. that's really ugly.
Well, I guess if kdm would display a warning in the log files it would be sufficient as well... Then the user could create the dir by hand or check his/her installation. > you probably installed as a regular user into a directory which requires no special permissions Nope, I installed as root from the Gentoo ebuilds. I'll report the problem to the Gentoo people.
Did not observe this problem in KDE 4.1.2.
this kind of makes no sense ...
nothing was changed so far. kdm should complain somehow.
SVN commit 1097273 by ossi: make a note of inaccessible DataDir in the log make no attempt at fixing it or being more visible. such a low-level installation failure can reasonably require low-level debugging ... BUG: 158196 M +3 -0 kdmconfig.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1097273