--- a/xflock4 2019-03-22 13:41:30.262811291 +0100 +++ b/xflock4 2019-03-22 13:45:16.692810781 +0100 @@ -27,9 +27,10 @@ export PATH # First test for the command set in the session's xfconf channel LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand) -# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running +# Lock by LockCommand, or try various screensavers, if a respective daemon is running for lock_cmd in \ "$LOCK_CMD" \ + "xfce4-screensaver-command --lock" \ "xscreensaver-command -lock" \ "gnome-screensaver-command --lock" do