unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
Is this still required, in particular on Linux Mint 17 MATE (which is a GNOME 2 fork) or are these legacy requirements? What happens if these env vars are set or unset?
Thanks.
--
You received this message because you are subscribed to the Google Groups "TigerVNC User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tigervnc-user...@googlegroups.com.
To post to this group, send email to tigervn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tigervnc-users/55A40053.6040409%40virtualgl.org.
TigerVNC no longer uses xstartup or supports multiple simultaneous Xvnc sessions under the same user account, so this is no longer relevant for TigerVNC. But I had to dig into the issue for TurboVNC 3.0, so I can definitely explain. :)
In order to run multiple Xvnc sessions under the same user account (assuming that all of the sessions will use a reasonably modern window manager), it is necessary for each Xvnc session to have a separate D-Bus session bus instance. On Red Hat/Fedora (and derivatives), SuSE/openSUSE, FreeBSD, and Solaris 11, xinitrc and Xsession automatically create a new session bus instance if the DBUS_SESSION_BUS_ADDRESS environment variable is empty. This is why xstartup.turbovnc and TigerVNC's xstartup file unset that environment variable, historically speaking.
I discovered that this is insufficient on
recent Debian-compatible systems (specifically Ubuntu 18.04+ and
whatever the Debian equivalents are.) On those systems, it is
necessary to explicitly create a new session bus instance using
dbus-launch. (Refer to
https://github.com/TurboVNC/turbovnc/blob/main/unix/xstartup.turbovnc,
which should work properly for all window managers listed here:
https://turbovnc.org/Documentation/Compatibility30.)
Unsetting SESSION_MANAGER is necessary if you are attempting to start an Xvnc session running GNOME/MATE from inside of an existing GNOME/MATE session. If the X startup script does not unset SESSION_MANAGER, then the new GNOME session will pick up the value of SESSION_MANAGER from the old GNOME session, and the two sessions will interfere.
DRC
To view this discussion on the web visit https://groups.google.com/d/msgid/tigervnc-users/13b16cad-23c7-4689-b10c-a255ed8ed804n%40googlegroups.com.