about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2024-09-16 09:10:23 -0500
committerStarfall <us@starfall.systems>2024-09-16 09:12:59 -0500
commit7de02423b1cd19de867074aa1a01a6653e42b469 (patch)
tree2820f3cc5fa8a6a22bedd004465f1959ec4155d9
parent09f6d9bd31a913551fef42c3d10a24cbe3996be7 (diff)
more portable .xinitrc
-rw-r--r--.xinitrc9
1 files changed, 7 insertions, 2 deletions
diff --git a/.xinitrc b/.xinitrc
index a147ba7..48bf79b 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -29,5 +29,10 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
  unset f
 fi
 
-# xfce
-command -v startxfce4 && exec startxfce4
+# exec desktop session - KDE or XFCE
+if command -v startplasma-x11 > /dev/null 2>&1; then
+	export DESKTOP_SESSION=plasma
+	exec startplasma-x11
+elif command -v startxfce4 > /dev/null 2>&1; then
+	exec startxfce4
+fi