NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tiger vncserver continues running after exiting desktop



Hello.

I have been strugling with this for some time and I am not able to fix it. I have Tiger VNC server running on my NetBSD raspberrypi4. This is the xstartup file:


netbsd-raspa4$ cat .config/tigervnc/xstartup
#!/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" &
#ctwm &
/usr/pkg/bin/startxfce4 &
netbsd-raspa4$


I enter in the raspberrypi4 server machine from the client machine using ssh and I start the server normally with $vncserver command. Then I connect to the machine using tigervncviewer, XFCE4 session or CTWM session, result is the same. When I exit XFCE4 or CTWM desktop, vncserver session continues running and I must kill it with

$vncserver -kill :1

I have vncserver also in a Debian GNU/Linux machine and when I exit desktop vncserver is automatically terminated. I do not understand why I get different behaviour in NetBSD. It is not a big problem but a bit annoying having to kill vncserver session.

Any clues will be appreciated.

Thanks.
Ramiro







Home | Main Index | Thread Index | Old Index