Comment 5 for bug 328575

Revision history for this message
In , Colin Walters (walters) wrote :

Can pfexec be patched to clear the DBUS_SESSION_BUS_ADDRESS environment variable? I believe libdbus will auto-spawn a bus for compatibility if it's not set.

The issue here is that we're getting permission denial; it would not be a trivial patch to libdbus to try connecting to a bus but then fall back after that instead of just noticing the environment variable isn't set.

Maybe a easier patch would put the uid in the environment variable; if it's not what we expect we ignore it.

Also do note the auto-spawning feature is really a terrible hack. If you run two different copies of gedit from two terminal tabs for example, you will get two session bus instances. That in turn means two instances of gconfd, which will happily stomp over each other's files in ~/.gconf.

In Fedora we are trying very hard to get rid of legacy usage of X applications running as root for this and a long list of other reasons.