From 7de02423b1cd19de867074aa1a01a6653e42b469 Mon Sep 17 00:00:00 2001 From: Starfall Date: Mon, 16 Sep 2024 09:10:23 -0500 Subject: more portable .xinitrc --- .xinitrc | 9 +++++++-- 1 file 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 -- cgit