diff options
author | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2015-03-25 17:03:02 +0100 |
---|---|---|
committer | Eric Koegel <eric.koegel@gmail.com> | 2015-03-26 12:18:04 +0300 |
commit | e940818853582290af21bf38d73ee26143d500ad (patch) | |
tree | e1d1d392228df4e954a8a4933f451e09b4fe5ea4 /scripts | |
parent | a65604d6f1b665dd7b8424f62877303b8bf3db06 (diff) | |
download | xfce4-session-e940818853582290af21bf38d73ee26143d500ad.tar.gz |
Make screenlockers configurable through xfconf
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/xflock4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/xflock4 b/scripts/xflock4 index ec4d05d4..7d857d37 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 |