xinit/xinit-xinitrc
Silvan Calarco fe160f62dc install a custom system xinitrc which tries to start the installed desktop manager
provide directory %{_sysconfdir}/X11/xinit/xinitrc.d [release 1.3.3-2mamba;Fri Jun 27 2014]
2024-01-05 19:43:07 +01:00

28 lines
572 B
Bash

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# XFCE in questo caso è il default
case $1 in
gnome) exec gnome-session;;
kde) exec startkde;;
lxde) exec startlxde;;
xfce) exec startxfce4;;
*) for s in startkde gnome-session startlxde startxfce4; do
e=$(which $s)
if [ "$e" -a -x $e ]; then
exec $e
break
fi
done ;;
esac