diff options
author | Starfall <us@starfall.systems> | 2024-09-16 09:10:23 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2024-09-16 09:12:59 -0500 |
commit | 7de02423b1cd19de867074aa1a01a6653e42b469 (patch) | |
tree | 2820f3cc5fa8a6a22bedd004465f1959ec4155d9 /.xinitrc | |
parent | 09f6d9bd31a913551fef42c3d10a24cbe3996be7 (diff) |
more portable .xinitrc
Diffstat (limited to '.xinitrc')
-rw-r--r-- | .xinitrc | 9 |
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 |