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 <anjan@momi.ca>
master
Jochen Sprickerhof 4 years ago committed by Anjandev Momi
parent 5e327629d9
commit 06a6d472d7
  1. 3
      scripts/core/sxmo_xinit.sh

@ -113,7 +113,8 @@ startdwm() {
exec dbus-run-session sh -c " exec dbus-run-session sh -c "
$0 daemonsneedingdbus; $0 daemonsneedingdbus;
. $0 customxinit; set -- customxinit
. $0
dwm 2> "$XDG_CACHE_HOME/sxmo/dwm.log" dwm 2> "$XDG_CACHE_HOME/sxmo/dwm.log"
" "
} }

Loading…
Cancel
Save