Bug 1238889 - No way to hide last user in SDDM
Summary: No way to hide last user in SDDM
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: sddm-kcm
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jiri Eischmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1240749
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-02 23:47 UTC by thomas meiner
Modified: 2024-08-09 14:11 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description thomas meiner 2015-07-02 23:47:20 UTC
Description of problem:
There is not way to hide the last user name in SDDM.

Version-Release number of selected component (if applicable):
root@localhost ~ $ dnf list sddm*
Last metadata expiration check performed 0:42:01 ago on Fri Jul  3 00:51:06 2015.
Installed Packages
sddm.x86_64      0.10.0-4.fc22 @System
sddm-kcm.x86_64  5.3.1-1.fc22  @System

How reproducible:
100%

Steps to Reproduce:
1. load SDDM

Actual results:
The name of the last user how logged in is shown in the user name filed.

Expected results:
An option to in the KDE-systemsettings5 to blank the user name filed at SDDM load.

Comment 1 Rex Dieter 2015-07-07 14:52:54 UTC
Does this work?

Set in /etc/sddm.conf :

RememberLastUser=false

Comment 2 thomas meiner 2015-07-07 15:32:55 UTC
RememberLastUser=false has no effect. 
It seams Bug #1155898 is not really fixed.

Comment 3 Rex Dieter 2015-07-07 15:48:43 UTC
It works for me, but, there's an interesting non-obvious quirk I just remembered.


RememberLastUser=false

only prevents sddm from updating /var/lib/sddm/state.conf to record *new* values for
user=

But, if state.conf already contains a
user=foo
value, that will continue to be used (and displayed) even after setting
RememberLastUser=false

So, to fully test this, either edit /var/lib/sddm/state.conf to include:

user=

or delete /var/lib/sddm/state.conf file altogether

Comment 4 Rex Dieter 2015-07-07 15:58:38 UTC
Regardless, it's true the current kcm UI does not offer the ability to tweak this configuration.

Marking as FutureFeature

Comment 5 thomas meiner 2015-07-07 16:20:51 UTC
If I edit or remove /var/lib/sddm/state.conf it works only for one time. The second login, shows the first user again. 

/var/lib/sddm/state.conf is not the problem at all, because it is only the cache of sddm. /var/lib/sddm/state.conf is restored each time when sddm is started. It stores each time the user.  RememberLastUser=false in /etc/sddm.conf has no effect on this behavior.

The only workaround I can imagine is a "rm -f /var/lib/sddm/state.conf" in /etc/bashrc

Comment 6 Rex Dieter 2015-07-07 16:29:33 UTC
Ah, confirmed the second login shows user despite having
RememberLastUser=false

So, looks like we have 2 bugs here.  That one I filed a separate bug,
https://bugzilla.redhat.com/show_bug.cgi?id=1240749

I guess there's little point in providing a UI for the option, unless the option actually works.

Comment 7 Ian Pilcher 2015-11-08 21:00:25 UTC
Far from ideal, but this can be forced by editing /var/lib/sddm/state.conf, setting "User=", and then making it immutable (chattr +i /var/lib/sddm/state.conf).

Comment 9 John Horne 2019-05-28 23:41:50 UTC
As far as I can tell this is still a bug at Fedora 30.
SDDM version sddm-0.18.1-2.fc30.x86_64


Note You need to log in before you can comment on or make changes to this bug.