When I log out from the XFCE session, I can see the wallpaper, but if I resize the window, or I close TigerVNC and connect to the server again, I only can see a black window. Weirdly, if I left it run it, eventually it will show me the screen saver, but if I click the mouse or press a key, the window goes black again.
I did quite a bit of research, but no solution seems to work, not sure really if this is expected or not. (For the record, a solution would be to not log out anymore, but since this setup will be accessed by many users, I can't really trust they will not log off ever, even by mistake).
Any ideas?
This is my xstartup:
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
Tried this version too, but same result:
#!/bin/bash
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /bin/sh /etc/xdg/xfce4/xinitrc # X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
startxfce4 &
Thanks for the quick reply. I was able to do the changes, and indeed now the tigervnc ends the session. However, it is not possible to connect again after that, I suppose because the service is down.
I searched for a way to set an automatic restart for the service one is down, but systemd doesn't seems to find the service.
Could you let me know what would be the best way to set an automatic restart of the vncserver?
Thanks.