mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-25 06:52:56 +02:00
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From e084c7694554ad64462dd8675bb9fc466bb32ce7 Mon Sep 17 00:00:00 2001
|
|
From: Guido Falsi <mad@madpilot.net>
|
|
Date: Wed, 26 Mar 2025 09:55:05 +0100
|
|
Subject: [PATCH] Use syntax compatible with most sh shells.
|
|
|
|
The `**` syntax is a bash extension.
|
|
|
|
Reported by: Tijl Coosemans <tijl@FreeBSD.org> (patch also suggested by him)
|
|
---
|
|
scripts/xflock4 | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/scripts/xflock4 b/scripts/xflock4
|
|
index 45c2d063..d1f7cef9 100755
|
|
--- a/scripts/xflock4
|
|
+++ b/scripts/xflock4
|
|
@@ -47,12 +47,12 @@ esac
|
|
[ -t 0 ] && sleep 1
|
|
|
|
# echo is used to strip blanks
|
|
-# $((2**31 - 1)) is MAXINT, which disables timeout: see
|
|
+# $(((1<<31)-1)) is MAXINT, which disables timeout: see
|
|
# https://dbus.freedesktop.org/doc/api/html/group__DBusPendingCall.html
|
|
ret=$(echo $(dbus-send --session \
|
|
--dest=org.xfce.SessionManager \
|
|
--print-reply=literal \
|
|
- --reply-timeout=$((2**31 - 1)) \
|
|
+ --reply-timeout=$(((1<<31)-1)) \
|
|
--type=method_call \
|
|
/org/xfce/SessionManager \
|
|
org.xfce.Session.Manager.Lock))
|
|
--
|
|
GitLab
|
|
|