summaryrefslogtreecommitdiff
path: root/extra/xorg-xdm/Xsession-loginshell.patch
blob: 3710752efa62a6827bb6c6d241e51e93e61b1f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- config/Xsession.cpp.orig	2008-06-21 13:57:36.000000000 +0000
+++ config/Xsession.cpp	2008-06-21 14:01:25.000000000 +0000
@@ -56,11 +56,7 @@
 resources=$HOME/.Xresources
 
 if [ -s "$startup" ]; then
-	if [ -x "$startup" ]; then
-		exec "$startup"
-	else
-		exec /bin/sh "$startup"
-	fi
+	exec /bin/sh -ls -c "$startup"
 else
 	if [ -r "$resources" ]; then
 		BINDIR/xrdb -load "$resources"