From 0f790345371759b0fa0de228a1be4c342d477d06 Mon Sep 17 00:00:00 2001 From: Simon Steinbeiss Date: Wed, 25 Mar 2015 17:03:02 +0100 Subject: [PATCH] Make screenlockers configurable through xfconf --- scripts/xflock4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/xflock4 b/scripts/xflock4 index ec4d05d..7d857d3 100644 --- a/scripts/xflock4 +++ b/scripts/xflock4 @@ -24,8 +24,12 @@ PATH=/bin:/usr/bin 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 for lock_cmd in \ + "$LOCK_CMD" \ "xscreensaver-command -lock" \ "gnome-screensaver-command --lock" do -- 2.1.4