freebsd-ports/x11-wm/xfce4-session/files/patch-scripts_xflock4
Olivier Duchateau c98b9d57c1 - Add delay when x11/slock is used (xflock4 script)
While I'm here,
- Adopt USES for desktop-file-utils, gettext, and athfix
- Add patch when NLS is unset

PR:		178090
Submitted by:	tijl@
2013-04-25 16:52:05 +00:00

19 lines
557 B
Text

--- scripts/xflock4.orig 2012-04-28 20:43:27.000000000 +0000
+++ scripts/xflock4 2013-04-24 19:55:56.000000000 +0000
@@ -21,7 +21,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-PATH=/bin:/usr/bin
+PATH=/bin:/usr/bin:/usr/local/bin
export PATH
# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
@@ -41,6 +41,7 @@
if command -v -- $1 >/dev/null 2>&1; then
$lock_cmd >/dev/null 2>&1 &
# turn off display backlight:
+ sleep 1
xset dpms force off
exit
fi