You are not logged in.

#1 2015-02-03 08:06:10

antony
Member
Registered: 2011-07-14
Posts: 43

vnc & kde

VNC'ing to a KDE desktop seems to fail on startup with the error "plasmashell closed unexpectedly".  The backtrace info suggests that this happens during calls to start_thread in libpthreads.  (This is on KDE5, but I've seen similar issues with KDE4 before).
Has anyone seen similar issues?  FWIW I can VNC without issues to an Xfce desktop.

Offline

#2 2015-02-03 19:44:17

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: vnc & kde

I'm using VNC with KDE4, I think all I did was to add 'exec startkde' to the end of it to make it work:

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
export XKL_XMODMAP_DISABLE=1
exec startkde

The only issue I have with this is that restarting/shutting down via the launcher "hangs" with an empty screen instead of actually shutting down/restarting the PC.


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#3 2015-02-05 09:30:53

antony
Member
Registered: 2011-07-14
Posts: 43

Re: vnc & kde

OK, so I figured out that the error on KDE4: I had stripped out the entire xstartup to replace it by "exec startkde", but I actually need to keep the manipulation of environment variables.
Unfortunately that doesn't seem to be enough for Plasma 5...

Offline

Board footer

Powered by FluxBB