Tigervnc stops working after upgrade to Fedora Core 25

I’m a big Fedora Core fan… I use it as my main PC at home [everything else is a VM on VMware somewhere].

 

After the upgrade from FC 24 to FC25, I could not VNC into my Linux box. I got a Grey or Blank screen. I found the issue after much research. I had the old VNC startup file, xstartup, as follows:

 

#!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

 

Well, this won’t work because WAYLAND now gets in the way. You have to use a newer design and what really got it working was the last two lines in  ~/.vnc/xstartup :

 

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# unset DBUS_SESSION_BUS_ADDRESS
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
#twm &
if test -z “$DBUS_SESSION_BUS_ADDRESS” ; then
eval `dbus-launch –sh-syntax –exit-with-session`
echo “D-BUS per-session daemon address is: \
$DBUS_SESSION_BUS_ADDRESS”
fi
XDG_SESSION_TYPE=x11 gnome-session &
XDG_SESSION_TYPE=x11 gnome-shell &

 

This works and I can run wayland as my main Gnome processor. I’m still running X.org for the remote VNC since VNC is not 100% compatible with wayland just yet.