summaryrefslogtreecommitdiff
path: root/lxde-base/lxdm/files/lxdm-0.4.1-fix-session-args.patch
blob: 11bacdbbd399dfadba989c8f72f3367506e715c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
diff -Nurp data//Xsession data.new//Xsession
--- data//Xsession	2011-07-29 15:42:33.000000000 +0200
+++ data.new//Xsession	2012-01-04 15:49:39.009452532 +0100
@@ -20,7 +20,7 @@ if [ -f /etc/X11/xinit/xinitrc-common ];
 	elif [ -x /usr/bin/ck-launch-session -a -z "$CK_XINIT_SESSION" ]; then
 		CK_XINIT_SESSION="/usr/bin/ck-launch-session"
 	fi
-	exec -l $SHELL -c "$CK_XINIT_SESSION \"$LXSESSION\""
+	exec -l "$SHELL" -c "$CK_XINIT_SESSION $LXSESSION"
 elif [ -x /etc/X11/xinit/Xsession ]; then
 # fedora
 	exec /etc/X11/xinit/Xsession "$LXSESSION"
@@ -30,7 +30,7 @@ elif [ -x /etc/X11/Xsession ]; then
 elif [ -x /etc/X11/xinit/xinitrc ]; then
 #suse
 	export WINDOWMANAGER=$LXSESSION
-	exec -l $SHELL -c /etc/X11/xinit/xinitrc
+	exec -l "$SHELL" -c /etc/X11/xinit/xinitrc
 else
 # unknown, user should custom /etc/lxdm/xinitrc self
 	if [ -x /etc/lxdm/xinitrc ]; then
@@ -41,6 +41,6 @@ else
 	elif [ -x /usr/bin/ck-launch-session ]; then
 		CK_XINIT_SESSION="/usr/bin/ck-launch-session"
 	fi
-	exec -l $SHELL -c "$CK_XINIT_SESSION \"$LXSESSION\""
+	exec -l "$SHELL" -c "$CK_XINIT_SESSION $LXSESSION"
 fi