On 12/30/20 1:18 PM, Pierre Labastie via blfs-dev wrote:

I think you can start gnome without a dm, by putting "exec gnome-
session" in .xinitrc. Now how to only start gnome-shell, I am not sure.

This is what I use:


$ cat .xinitrc
session=${2:-xfce}

dbus="dbus-launch --exit-with-session"
ck="ck-launch-session dbus-launch --exit-with-session"

case $session in
    fluxbox     ) exec startfluxbox                ;;
    icewm       ) exec icewm-session               ;;
    openbox     ) exec openbox-session             ;;
    sawfish     ) exec sawfish                     ;;
    kde5|plasma ) exec $dbus /opt/kf5/bin/startplasma-x11  ;;
    xfce|xfce4  ) exec $dbus startxfce4            ;;
    lxde        ) exec ck-launch-session startlxde ;;
    lxqt        ) $dbus /opt/lxqt/bin/startlxqt    ;;
    lxqt2       ) exec /opt/lxqt/bin/startlxqt     ;;
    gnome       ) $dbus /usr/bin/gnome-session     ;;

    twm         ) xterm  -g 80x40+0+0   &
                  xclock -g 100x100-0+0 &
                  twm
                  ;;

   # No known session, just say so
    *) echo "Cannot run $1" ;;
esac
----

Some of the entries are obsolete. The default can be changed in line 1.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to