[PATCH] Update xflock4 (Bug 10217) again

Robby Workman rw at rlworkman.net
Thu Mar 19 03:27:44 CET 2015


On Thu, 19 Mar 2015 02:21:25 +0600
Alexander Mezin <mezin.alexander at gmail.com> wrote:

> -# else run another access locking utility, if installed
> -for lock_cmd in \
> -  "xlock -mode blank" \
> -  "slock"
> -  do
> -    set -- $lock_cmd
> -    if command -v -- $1 >/dev/null 2>&1; then
> -        $lock_cmd >/dev/null 2>&1 &
> -	# turn off display backlight:
> -	xset dpms force off
> -        exit
> -    fi


This won't work due to how "command" works.  See attached (modified)
patch for something that works on both Slackware 14.1 and OpenBSD 5.6
here.

-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-scripts-xflock4-Improve-lock-options.patch
Type: text/x-patch
Size: 3323 bytes
Desc: not available
URL: <https://mail.xfce.org/pipermail/xfce4-dev/attachments/20150318/0f2cc4ee/attachment.bin>


More information about the Xfce4-dev mailing list