From 06a6d472d764bc0ba1950904de2868444318323c Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Sat, 8 May 2021 22:58:37 +0200 Subject: [PATCH] Don't pass parameters when souring scripts Passing additional parameters when sourcing scripts is not specified in POSIX [1]. For example dash simply ignores it and proposes to use set instead [2]. This is needed to use sxmo on top of Debian. [1] https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=713805#10 Signed-off-by: Anjandev Momi --- scripts/core/sxmo_xinit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index 22b3ab8..d6b23f9 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -113,7 +113,8 @@ startdwm() { exec dbus-run-session sh -c " $0 daemonsneedingdbus; - . $0 customxinit; + set -- customxinit + . $0 dwm 2> "$XDG_CACHE_HOME/sxmo/dwm.log" " }