On 6/1/2017 2:02 PM, Bruce Dubbs wrote:
Alan Feuerbacher wrote:
I've more or less installed KDE in BLFS version 8.0, but I can't figure
out how to start it. I've searched the Web and the BLFS book. KDE Plasma
has a command "startkde" but there does not appear to be the equivalent
for KDE 5. What am I missing?

I've gone over how the startx script works to start twm. I presume that
starting KDE will be similar, given the right magic words.

It's documented on the plasma page:

cat > ~/.xinitrc << "EOF"
ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde
EOF

startx

Ok. That information ought to be in the instructions for KDE5 as well as Plasma.

But there's another problem: there is no "startkde" binary anywhere in the KDE5 installation or BLFS book for KDE5. Only for Plasma.

The closest I can find is "kdeinit5" but that does not work. I searched on the Net but found nothing useful.

My full .xinitrc is a bit more complex as it takes an optional argument:

$ 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                     ;;
    #kde|kde4    ) exec $ck /opt/kde/bin/startkde   ;;
     kde5|plasma ) exec $ck /opt/kf5/bin/startkde   ;;
     xfce|xfce4  ) exec $ck startxfce4              ;;
     lxde        ) exec ck-launch-session startlxde ;;
     lxqt        ) $dbus /opt/lxqt/bin/startlxqt    ;;
     lxqt2       ) exec /opt/lxqt/bin/startlxqt     ;;

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

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

What a useful script! I installed all of the listed window managers and desktops, and they all work fine with this script, except for KDE5. Even Plasma works fine.

I changed two lines for my use:

      plasma ) exec $ck /opt/kf5/bin/startkde   ;;
      kde5   ) exec $ck /opt/kf5/bin/kdeinit5   ;;

I'm suspecting that the KDE5 build is missing some software components.

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

Reply via email to