Hello,
Note: Server is Centos 7.
I've been starting my Xvnc server as a non-privileged user in the following way: "TVNC_WM=mate-session /opt/TurboVNC/bin/vncserver". For a while, this was enough to allow me to connect via TurboVNC Viewer. Recently however, when I connect to this server, I have been getting an error from the VNC Viewer GUI:
"Could not connect to session bus: Failed to connect to socket /tmp/dbus-<unique string>: Connection refused"
Followed by another popup in TurboVNC Viewer:
"Could not acquire name on session bus"
I don't see any errors in the appropriate ~/.vnc/*.log files, I do see errors in /var/log/messages:
May 4 10:22:53 cn9999 mate-session[1556]: WARNING: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=MATE environment variable: Could not connect: Connection refused
May 4 10:22:53 cn9999 mate-session[1556]: WARNING: Could not make bus activated clients aware of DISPLAY=:1 environment variable: Could not connect: Connection refused
May 4 10:22:53 cn9999 mate-session[1556]: WARNING: Could not make bus activated clients aware of MATE_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Could not connect: Connection refused
May 4 10:22:53 cn9999 mate-session[1556]: dconf-WARNING: failed to commit changes to dconf: Could not connect: Connection refused
May 4 10:22:53 cn9999 mate-session[1556]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1556,unix/unix:/tmp/.ICE-unix/1556 environment variable: Could not connect: Connection refused
When I start the VNC server in the same way as root, I'm able to start a mate session and work with a desktop.