summaryrefslogtreecommitdiffstats
path: root/arch/tde-core/tde-tdebase/xsession.patch
blob: 8084fda40db93e55af08ea58e8a3fa13ec4da6a6 (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
--- /mnt/archlinux/opt/trinity/share/config/kdm/Xsession	2011-12-08 13:08:43.000000000 +0100
+++ /opt/trinity/share/config/tdm/Xsession	2011-09-24 14:52:28.000000000 +0200
@@ -43,4 +43,24 @@
     ;;
 esac
 # invoke global X session script
-. /etc/X11/Xsession
+ 
+ 
+	case $session in
+	  "")
+	    exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
+	    ;;
+	  failsafe)
+	    exec xterm -geometry 80x24-0-0
+	    ;;
+	  custom)
+	    exec $HOME/.xsession
+	    ;;
+	  default)
+	    exec /opt/trinity/bin/starttde
+	    ;;
+	  *)
+	    eval exec "$session"
+	    ;;
+	esac
+	exec xmessage -center -buttons OK:0 -default OK "Sorry, cannot execute $session. Check $DESKTOP_SESSION.desktop."
+