diff options
author | Papoteur <papoteur@mageia.org> | 2021-02-14 17:52:16 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2022-04-14 19:15:56 +0200 |
commit | 97f64b96ed1afc1326ee4622a92adf7460248ae1 (patch) | |
tree | 5cce39bb8263b724e8489f4bc03ea5f88f637486 /src | |
parent | 73b00b0fef0227356a478162fd53526400c44458 (diff) | |
download | msec-97f64b96ed1afc1326ee4622a92adf7460248ae1.tar msec-97f64b96ed1afc1326ee4622a92adf7460248ae1.tar.gz msec-97f64b96ed1afc1326ee4622a92adf7460248ae1.tar.bz2 msec-97f64b96ed1afc1326ee4622a92adf7460248ae1.tar.xz msec-97f64b96ed1afc1326ee4622a92adf7460248ae1.zip |
Set also MinimumUid in sddm.conf with ALLOW_USER_LIST option. This renders certain that no user is displayed.
Diffstat (limited to 'src')
-rwxr-xr-x | src/msec/plugins/msec.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/msec/plugins/msec.py b/src/msec/plugins/msec.py index 34adaa1..52eb8d7 100755 --- a/src/msec/plugins/msec.py +++ b/src/msec/plugins/msec.py @@ -393,6 +393,7 @@ class msec: if oldval_sddmconf != 'true': self.log.info(_("Allowing list of users in {}").format('SDDM')) sddmconf.set_shell_variable('RememberLastUser', 'true','^\[Users\]', '^\s*$') + sddmconf.set_shell_variable('MinimumUid', '500','^\[Users\]', '^\s*$') else: if gdmconf.exists(): if gdm230.exists(): @@ -405,6 +406,7 @@ class msec: if oldval_sddmconf != 'false': self.log.info(_("Forbidding showing last user in {}").format('SDDM')) sddmconf.set_shell_variable('RememberLastUser', 'false','^\[Users\]', '^\s*$') + sddmconf.set_shell_variable('MinimumUid', '99999','^\[Users\]', '^\s*$') def allow_autologin(self, arg): ''' Allow autologin.''' |