When using /etc/init.d/tigervnc to automatically start VNC sessions configured in /etc/conf.d/tigervnc, the window manager is not started. (version 1.0.0-r3) This is because XSESSION is not defined, and in general none of the (expected) environmental variables are defined. This is because the runscript environment is rather minimal. I suggest running 'source /etc/profile' prior to starting vncserver: 40c40 < su ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null --- > su ${user%%:*} -c "source /etc/profile && cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &> /dev/null In general, when /etc/profile is not loaded, the window manager is also started without any profile background. See http://forums.gentoo.org/viewtopic-p-6193559.html for a short discussion. Reproducible: Always
Thanks for your suggestion -- assigning it to tigervnc maintainer.
Even with the suggested modification in original report the $SHELL env. variable is set to /bin/sh instead of a user defined shell.
Applied