x11/xfce4/xfce4-session: fix screen locking by dropping a bashism

from https://gitlab.xfce.org/xfce/xfce4-session/-/merge_requests/79
reported by stsp@, thanks !
This commit is contained in:
landry
2025-03-31 10:56:42 +00:00
parent a96bd9161a
commit cef39bfd24
2 changed files with 15 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ COMMENT= Xfce4 session manager
XFCE_PROJECT= xfce4-session
XFCE_VERSION= 4.20.2
REVISION= 0
# GPLv2
PERMIT_PACKAGE= Yes
@@ -0,0 +1,14 @@
https://gitlab.xfce.org/xfce/xfce4-session/-/merge_requests/79
Index: scripts/xflock4
--- scripts/xflock4.orig
+++ scripts/xflock4
@@ -52,7 +52,7 @@ esac
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))