Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3567

Graphical Environments & Desktops • Bookworm XFCE: Screen locker configuration

$
0
0
First thing to do would be to answer the question in the output: Is LightDM running? Are you using LightDM?
Not that I'm aware of. I'm trying to figure that out:

Code:

$ pgrep -a light$ pgrep -a dm374 [kdmflush/254:0]375 [kdmflush/254:1]417 [jbd2/dm-0-8]1485 /usr/sbin/gdm32121 gdm-session-worker [pam/gdm-password]2247 /usr/libexec/gdm-x-session --register-session --run-script startxfce4
Looks like I'm running gdm3 - GNOME Display Manager!?
xflock4 is configured in /usr/bin/xflock4
Oh, I wasn't aware that this is a script, thanks for the hint. Mine looks as follows:

Code:

# [...copyleft and other comments left out for brevity...]# Wait a bit so that user have time to raise finger from a key if# the script is run in terminal.[ -t 0 ] && sleep 1# First test for the command set in the session's xfconf channelLOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand)if [ -n "$LOCK_CMD" ]; then    /bin/sh -c "$LOCK_CMD" && exit    exit_code=$?    >&2 printf "'%s' exited with status %d\n" "$LOCK_CMD" $exit_code    exit $exit_codefifor lock_cmd in \    xscreensaver-command \    light-locker-command \    xfce4-screensaver-command \    gnome-screensaver-command \    mate-screensaver-commanddo    $lock_cmd --lock </dev/null 2>/dev/null && exitdone# else access locking failedexit 1
I ran a slightly modified version of its core directly in my terminal for debugging:

Code:

$ xfconf-query -c xfce4-session -p /general/LockCommand$ for lock_cmd in \>    xscreensaver-command \>    light-locker-command \>    xfce4-screensaver-command \>    gnome-screensaver-command \>    mate-screensaver-command> do>    $lock_cmd --lock>    echo "$lock_cmd exited with $?"> donebash: xscreensaver-command: command not foundxscreensaver-command exited with 127** Message: 09:38:07.854: Received error message from the locker: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ScreenSaver was not provided by any .service fileslight-locker-command exited with 1bash: xfce4-screensaver-command: command not foundxfce4-screensaver-command exited with 127bash: gnome-screensaver-command: command not foundgnome-screensaver-command exited with 127bash: mate-screensaver-command: command not foundmate-screensaver-command exited with 127
Looks like the only command supported by `xflock4` which is also installed is `light-locker-command`, but it's failing with that DBus.Error.ServiceUnknown.

Since I'd like to keep my configuration changes to a minimum, I'm now wondering if I'd be better off
  1. trying to get `light-locker-command` working or
  2. installing `gnome-screensaver` or
  3. something else.
Any guidance would be appreciated!

Statistics: Posted by chrisgeli — 2024-04-03 23:29 — Replies 2 — Views 65



Viewing all articles
Browse latest Browse all 3567

Trending Articles