aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2021-02-14 17:52:16 +0100
committerPapoteur <papoteur@mageia.org>2022-04-14 19:15:56 +0200
commit97f64b96ed1afc1326ee4622a92adf7460248ae1 (patch)
tree5cce39bb8263b724e8489f4bc03ea5f88f637486 /src
parent73b00b0fef0227356a478162fd53526400c44458 (diff)
downloadmsec-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-xsrc/msec/plugins/msec.py2
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.'''