User bus?

Havoc Pennington hp at
Fri Feb 15 19:25:58 PST 2008


On Fri, Feb 15, 2008 at 10:02 PM, Brian J. Tarricone <bjt23 at> wrote:
>  How about storing a file somewhere in $XDG_CACHE_HOME with the relevant
>  info?  If DBUS_SESSION_BUS_ADDRESS isn't set, and for some reason the X
>  property can't be read, libdbus can (automatically!) fall back to this file.

The problem with that is that it implicitly changes the scope of the
bus to per-homedir (which may not even be per-machine, due to NFS or
Then two sessions end up talking to the same gnome-panel, things like that.

>  > This was simply copied from X and DISPLAY btw. If you can get DISPLAY
>  > set, presumably the same mechanism can set DBUS_SESSION_BUS_ADDRESS.
>  There are some instances where I don't care if DISPLAY is set or not.
>  E.g., ssh-ing into a machine to use purple-remote to change Pidgin's
>  away message.

For things to work exactly as intended, ssh should forward
DBUS_SESSION_BUS_ADDRESS in the same way it forwards DISPLAY. However
I don't know of any efforts to patch ssh for that.


More information about the xdg mailing list