Hello, As can be guessed from the summary line, Thunar does not always unset the DBUS_STARTER_ADDRESS and DBUS_STARTER_BUS_TYPE environment variables when spawning a program. As an example, this bug prevents gedit from starting if one double-clicks a text file on the desktop or in Thunar. If one persists and double-clicks once more, only then gedit starts. (For the record, using the context menu and selecting "Open with gedit" works fine. I had a short look at Thunar's source code, and double clicking and opening via the context-menu seem to have different code paths.) I have confirmed that this problem exists by replacing /usr/bin/gedit with a script that removes the above-mentioned environment variables before starting the actual gedit binary, and observing that with this modification gedit starts properly after one double-clicks on a text file. For the record, here is a bug report from Ubuntu's Unity, which confirms that the mentioned environment variables should be unset before spawning a program: https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/873027 Thank you, M. Vefa Bicakci
I forgot to mention my platform: I am using an up-to-date Debian Sid based installation with Thunar 1.2.3. Please let me know if I have missed any details.
Fixed in ae5f402.