summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/profile/root-image/etc/skel/.xinitrc21
1 files changed, 11 insertions, 10 deletions
diff --git a/configs/profile/root-image/etc/skel/.xinitrc b/configs/profile/root-image/etc/skel/.xinitrc
index b2cccac..c565042 100644
--- a/configs/profile/root-image/etc/skel/.xinitrc
+++ b/configs/profile/root-image/etc/skel/.xinitrc
@@ -37,13 +37,14 @@ fi
# start a destop environment
-if [ "${DESKTOP_SESSION}" == 'LXDE' ]
-then exec startlxde
-elif [ "${DESKTOP_SESSION}" == 'mate' ]
-then exec mate-session
-else twm &
- xclock -geometry 50x50-1+1 &
- xterm -geometry 80x50+494+51 &
- xterm -geometry 80x20+494-0 &
- exec xterm -geometry 80x66+0+0 -name login
-fi
+case ${DESKTOP_SESSION} in
+ 'calamares' ) twm &
+ exec sudo calamares -D 6 ;;
+ 'LXDE' ) exec startlxde ;;
+ 'mate' ) exec mate-session ;;
+ * ) twm &
+ xclock -geometry 50x50-1+1 &
+ xterm -geometry 80x50+494+51 &
+ xterm -geometry 80x20+494-0 &
+ exec xterm -geometry 80x66+0+0 -name login ;;
+esac