Bug 88339 - kdm: Preselect user -> none not working.
Summary: kdm: Preselect user -> none not working.
Status: RESOLVED FIXED
Alias: None
Product: kcontrol
Classification: Unmaintained
Component: kcmkdm (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdm bugs tracker
URL:
Keywords:
: 89816 91714 91875 93444 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-28 21:33 UTC by Antti Tuominen
Modified: 2008-05-19 17:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
kdmrc (1.53 KB, text/plain)
2004-09-13 17:21 UTC, Antti Tuominen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Tuominen 2004-08-28 21:33:48 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Unlisted Binary Package
Compiler:          gcc 3.4.1 
OS:                Linux

After upgrading to KDE 3.3.0, the Preselect user option behaves as if it were to set to "Previous" even though it is set to "None." Also, the password field is focused even though the box is unchecked.

I'm using the binary packages that came with Arch Linux.
Comment 1 Neil Tallim 2004-08-28 23:10:00 UTC
Problems confirmed here. (Also using the Arch Linux binary packages.)

Elaboration on the password issue: If the "Focus password" box is unchecked in the KDE Control Center and a name is present in the username textbox when KDM starts (using any of the three Preselect options), the password textbox will be focused instead of the username textbox.
Comment 2 Oswald Buddenhagen 2004-09-13 11:29:34 UTC
ugh, tough one. i expected something like this to happen some day ...
the problem is, that kdmrc has a hierarchical, display based layout. but kcm changes only one setting, the most generic one. unfortunately the default config contains a specific setting for local displays ...
Comment 3 Antti Tuominen 2004-09-13 17:21:44 UTC
Created attachment 7507 [details]
kdmrc

Here is my /opt/kde/share/config/kdm/kdmrc file. Skimming through the file, it
looks like all the settings are ok there. Not knowing about kcmkdm's internals,
I'm not exactly sure which is the "most generic" setting you're referring to.

Also, Arch has the annoying habit of overwriting some config files (kdm's, for
one) when upgrading packages, unless explicitly set not to overwrite them. So
this is basically just a default config, only modified via kcmkdm.

Btw, is there a manual kdmrc edit I could do to restore the wanted behaviour
(until this is resolved)?
Comment 4 Oswald Buddenhagen 2004-09-13 17:53:28 UTC
you have PreselectUser twice: in X-*-Greeter and in X-:*-Greeter - the latter takes precedence when it matches. rtfm for an explanation why it does and how to achieve what you want.
Comment 5 Oswald Buddenhagen 2004-09-19 16:04:28 UTC
*** Bug 89816 has been marked as a duplicate of this bug. ***
Comment 6 Oswald Buddenhagen 2004-10-20 17:59:13 UTC
*** Bug 91714 has been marked as a duplicate of this bug. ***
Comment 7 Oswald Buddenhagen 2004-10-22 06:15:44 UTC
*** Bug 91875 has been marked as a duplicate of this bug. ***
Comment 8 Marco Clocchiatti 2004-10-23 22:00:10 UTC
Thank you.
The additional comment #4 is enough for my problem.

So that's not a bug for kdm, but a bad choice of default parameters.
In mine (default) kdmrc, I have, in first part:

[code]
...
# Specify, if/which user should be preselected for log in.
# "None" - don't preselect any user
# "Previous" - the user which successfully logged in last time
# "Default" - the user specified in the DefaultUser option
# Default is None
#PreselectUser=Previous
...
[/code]

and in a second part:

[code]
...
# Greeter config for local displays
[X-:*-Greeter]
# See above
#PreselectUser=Previous
...
[/code]
Thath's really no transparent!
On more, the resulting behaviour is too much similar to windows98, and that's bad and bad ...
Comment 9 Marco Clocchiatti 2004-10-23 22:49:29 UTC
Sorry! In comment #8, please change:
[code] 
 ... 
 # Greeter config for local displays 
 [X-:*-Greeter] 
 # See above 
 #PreselectUser=Previous 
 ... 
 [/code]

with:

[code] 
 ... 
 # Greeter config for local displays 
 [X-:*-Greeter] 
 # See above 
 PreselectUser=Previous 
 ... 
 [/code]
Comment 10 Oswald Buddenhagen 2004-11-17 15:22:34 UTC
*** Bug 93444 has been marked as a duplicate of this bug. ***
Comment 11 Oswald Buddenhagen 2005-02-09 11:05:07 UTC
ok, fixed in 3.3 branch and head the crude way: the kcm now changes the setting for local displays only.
Comment 12 Marco Clocchiatti 2005-02-20 21:20:41 UTC
Sorry, but I've some problem to explain my wishes in english.

And I've done a typografical error on comment #8.

So, the configuration #9 shows the bad behaviour (in mine opinion), which is also the actual: infact the default behaviours are not omogeneus in all parts.

I think that the statement "PreselectUser=Previous" generate a kind of privacy
violation, and so it is uncorrect, in a standard configuration (not in a
windows-like configuration, off course).

It should be commented everywhere.

Anyway, I'm sure you have a lot of more important things to work about.
Thank you for your patience.