summarylogtreecommitdiffstats
path: root/Xsession-xsm.patch
blob: 5524de26ccc950d05dcdc5318a9ecfbd7e53b0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- xdm/config/Xsession.in.orig	2018-06-18 14:25:14.113681055 +0000
+++ xdm/config/Xsession.in	2018-06-18 14:26:10.313832406 +0000
@@ -51,6 +51,7 @@
 
 startup=$HOME/.xsession
 resources=$HOME/.Xresources
+xinitrc=$HOME/.xinitrc
 
 if [ -s "$startup" ]; then
 	exec /bin/sh -ls -c "$startup"
@@ -58,5 +59,9 @@
 	if [ -r "$resources" ]; then
 		BINDIR/xrdb -load "$resources"
 	fi
-	exec BINDIR/xsm
+	if [ -r "$xinitrc" ]; then
+		exec /bin/sh -ls -c "$xinitrc"
+	else
+		exec /bin/sh -l /etc/X11/xinit/xinitrc
+        fi
 fi