https://bugs.kde.org/show_bug.cgi?id=436271

            Bug ID: 436271
           Summary: DESKTOP_LOCKED=1 for ksmserver does not lock the
                    session on start with systemdBoot=true
           Product: ksmserver
           Version: 5.21.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: gdam...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

Running plasma 5.21.4 on ArchLinux, I have sddm set to auto-login, but I'd like
the plasma session to start locked. The session also runs with a couple of apps
auto-started.

My plasma is set to use the systemd startup method and in
.config/environment.d/kde.conf I have DESKTOP_LOCKED=1.
I can confirm that both ksmserver and kwin processes have the environment
variable in their /proc/<pid>/environ pseudo-file.

But the session does not start locked. I'm not sure if this is a bug in a
recent Plasma or its systemd startup method?

if I switch back to non-systemd startup

 kwriteconfig5 --file startkderc --group General --key systemdBoot false

and setting DESKTOP_LOCKED=1 in ~/.pam_environment, kde starts locked


STEPS TO REPRODUCE
1. kwriteconfig5 --file startkderc --group General --key systemdBoot true
2. echo DESKTOP_LOCKED=1 > ~/.config/environment.d/kde.conf
3. cat <<EOF > /etc/sddm.conf.d/autologin.conf
[Autologin]
User=damjan
EOF
4. reboot


OBSERVED RESULT:
Plasma session for user damjan starts unlocked


EXPECTED RESULT:
Plasma session for user damjan starts **locked**


SOFTWARE/OS VERSIONS

Linux: Archlinux
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Graphics Platform: X11
sddm version: 0.19.0-5

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to