[Xfce-bugs] [Bug 5121] Add slock as an option in xflock4 script

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Mar 27 17:51:50 CET 2009


http://bugzilla.xfce.org/show_bug.cgi?id=5121





--- Comment #4 from Robby Workman <rw at rlworkman.net>  2009-03-27 16:51:49 UTC ---
Okay, rather than a patch, here's my latest proposal.
It's a few more lines than what is currently present though...

I've got a request for some gnome guys to verify that gnome-screensaver behaves
the same as xscreensaver with respect to what -command returns if the daemon
isn't running, but assuming it does, I think this will work:

if [ -x $(which xscreensaver-command 2>/dev/null) ]; then
   xscreensaver-command -lock || break
fi

if [ -x $(which gnome-screensaver-command --lock 2>/dev/null) ]; then
   gnome-screensaver-command --lock || break
fi

if [ -x $(which slock 2>/dev/null) ]; then
  slock || break
fi

xlock $*

exit 0

-- 
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Xfce-bugs mailing list