ports/devel/xdg-utils/files/patch-scripts_xdg-screensaver.in
Tijl Coosemans 5f9991a88d Fix disabling of xserver screensaver by xdg-screensaver script.
Add a newline after the t function in a sed command.  FreeBSD sed appears
to interpret everything after the t function as a label, including
characters that would otherwise have special meaning.

PR:		235868
Approved by:	maintainer timeout (2 weeks)
2019-03-05 17:00:25 +00:00

23 lines
749 B
Text

--- scripts/xdg-screensaver.in.orig 2018-05-10 15:02:31 UTC
+++ scripts/xdg-screensaver.in
@@ -27,7 +27,9 @@ _USAGE
#@xdg-utils-common@
# Check if we can use "mv -T"
-if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then
+# FreeBSD mv doesn't support this, so supress scary messages in the terminal
+#if mv -T ... ... 2>&1 | grep '\.\.\.' > /dev/null ; then
+if false; then
# We can securely move files in /tmp with mv -T
DEBUG 1 "mv -T available"
MV="mv -T"
@@ -378,7 +380,8 @@ screensaver_kde3()
xset_screensaver_timeout()
{
- xset q | sed '/^Screen Saver:/,/^[^ ]/ { s/.*timeout: *\([0-9]*\).*/\1/; t }; d'
+ xset q | sed '/^Screen Saver:/,/^[^ ]/ { s/.*timeout: *\([0-9]*\).*/\1/; t
+ }; d'
}
screensaver_xserver()