aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-04-03 09:20:53 -0400
committerB Stack <bgstack15@gmail.com>2020-04-03 09:20:53 -0400
commitb3b61e8d9c84a93b04e0d33e402cba8df897ab5c (patch)
treeb94c5c00f5fe7f56304fff26faa59639e9a2dd6a
parentfix #5 cli: multiple problems (diff)
downloadlogout-manager-b3b61e8d9c84a93b04e0d33e402cba8df897ab5c.tar.gz
logout-manager-b3b61e8d9c84a93b04e0d33e402cba8df897ab5c.tar.bz2
logout-manager-b3b61e8d9c84a93b04e0d33e402cba8df897ab5c.zip
fix #6 xscreensaver invocation is incorrect
It is now xscreensaver-command -lock
-rwxr-xr-xsrc/usr/libexec/logout-manager/lm-helper10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/libexec/logout-manager/lm-helper b/src/usr/libexec/logout-manager/lm-helper
index 6372827..700e86f 100755
--- a/src/usr/libexec/logout-manager/lm-helper
+++ b/src/usr/libexec/logout-manager/lm-helper
@@ -1,7 +1,7 @@
#!/bin/sh
# Dependencies:
-# Devuan: wmctrl sudo
-# el7: wmctrl sudo
+# dep-devuan: wmctrl, sudo
+# dep-el7: wmctrl, sudo
case "${1}" in
help) # show this help screen
{
@@ -18,9 +18,9 @@ case "${1}" in
lock) # lock the current screen
if test -z "${DRYRUN}" ;
then
- xscreensaver --locknow
+ xscreensaver-command -lock
else
- echo "xscreensaver --locknow"
+ echo "xscreensaver-command -lock"
fi
;;
logout) # log out the current user of the graphical session
@@ -36,7 +36,7 @@ case "${1}" in
fi
;;
*)
- echo "Gotta say unh! Feature not yet implemented for \"${_wm}\"" 1>&2
+ echo "Gotta say unh! Feature not yet implemented for \"${_wm}\". Please report this to bgstack15@gmail.com" 1>&2
exit 1
;;
esac
bgstack15