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: Select all
$ pgrep -a light
$ pgrep -a dm
374 [kdmflush/254:0]
375 [kdmflush/254:1]
417 [jbd2/dm-0-8]
1485 /usr/sbin/gdm3
2121 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: Select all
# [...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 channel
LOCK_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_code
fi
for lock_cmd in \
xscreensaver-command \
light-locker-command \
xfce4-screensaver-command \
gnome-screensaver-command \
mate-screensaver-command
do
$lock_cmd --lock </dev/null 2>/dev/null && exit
done
# else access locking failed
exit 1
I ran a slightly modified version of its core directly in my terminal for debugging:
Code: Select all
$ 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 $?"
> done
bash: xscreensaver-command: command not found
xscreensaver-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 files
light-locker-command exited with 1
bash: xfce4-screensaver-command: command not found
xfce4-screensaver-command exited with 127
bash: gnome-screensaver-command: command not found
gnome-screensaver-command exited with 127
bash: mate-screensaver-command: command not found
mate-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
- trying to get `light-locker-command` working or
- installing `gnome-screensaver` or
- something else.
Any guidance would be appreciated!