Bug 118291 - dbus-launch does not execute on forwarded X sessions
Summary: dbus-launch does not execute on forwarded X sessions
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X.Org (show other bugs)
Version: unspecified
Hardware: Other All
: P5 - None : Enhancement (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 20:55 UTC by Gary Ekker
Modified: 2007-12-02 22:10 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Ekker 2005-09-21 20:55:45 UTC
Applications requiring a session bus to be running, banshee, tomboy, etc. do not
work if launched on a forwarded X session. This is likely a problem with the way
we launch dbus-launch in xinitrc.
Comment 1 JP Rosevear 2005-12-21 13:47:03 UTC
This is really an X issue since all this was pulled down into xinit as a matter of policy.
Comment 2 Stefan Dirsch 2005-12-21 14:45:42 UTC
What about giving some more details?
Comment 3 Dr. Werner Fink 2005-12-21 15:20:05 UTC
Q: Does this mean that we need something like

    test -n "$DBUS_SESSION_BUS_ADDRESS"

and hope that we've a running dbus session?

Comment 4 Gary Ekker 2006-01-03 17:48:19 UTC
Yes, and if we don't have a running session bus, then we need to launch one.
Comment 5 Stefan Dirsch 2006-01-03 18:36:00 UTC
I'm still missing feedback to my comment #2.
Comment 6 Gary Ekker 2006-01-04 21:46:32 UTC
So dbus-launch is only exec'd with the windowmanager.
gekker@hegel:~> env | grep dbus
WINDOWMANAGER=/usr/bin/dbus-launch --sh-syntax --exit-with-session /usr/X11R6/bin/gnome
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-m040xX2zYG,guid=bdd7b243f38b37ca2902fcf8f8a5a200

If one were to "ssh -X hegel.provo.novell.com" and the "env | grep dbus" there is no DBUS_SESSION_BUS_ADDRESS, since we never launched the session bus with dbus-launch.

Sorry for the confusion on this bug, what we are asking is, how can we also get the session bus running when on a forwarded X session?
Comment 7 Dr. Werner Fink 2006-01-11 10:32:46 UTC
Gary, there is on major problem: even if I add a boolean switch
to attach on a current dbus session, this IMHO will not help if
you're are using ssh to forward the X session.   This because
as van see above the DBUS_SESSION_BUS_ADDRESS contains a unix
domain socket which is only valid on the local host.
Comment 8 Stefan Dirsch 2006-01-11 10:54:16 UTC
I think it makes sense to assign this one to Werner. :-)
Comment 9 Dr. Werner Fink 2006-01-11 12:22:45 UTC
I'm now testing for a valid DBUS_SESSION_BUS_ADDRESS variable
but this does not solve the problem with forwarded X sessions.

Maybe the ssh command should also export the variable
DBUS_SESSION_BUS_ADDRESS ... but nevertheless, a unix
domain socket isn't very helpful for a dbus message
from the remote to the local dbus-deamon. 
Comment 11 Stefan Dirsch 2006-01-12 05:23:03 UTC
-------------------------------------------------------------------
Wed Jan 11 13:23:39 CET 2006 - werner@suse.de

- Check for an already running dbus session before launching a
  new session (bug #118291).

Thanks! Werner, can we close this now as FIXED?
Comment 12 Dr. Werner Fink 2006-01-12 10:08:57 UTC
No, this is not fixed. Remaing problem is how to forward
a dbus session to a remote host.  Currently I do not
see how dbus is accessible over `ssh- X'. Timo?
Comment 13 Timo Hoenig 2006-01-12 10:48:33 UTC
Sorry, since I haven't tried this myself I don't know if or how it works.

Maybe those pointers are some help:

http://lists.freedesktop.org/archives/dbus/2005-February/002141.html
http://lists.freedesktop.org/archives/dbus/2005-January/002011.html
Comment 14 Stefan Dirsch 2006-03-19 08:44:16 UTC
I take this back as enhancement. Gary, this probably needs to be added to FATE. Otherwise nobody will work on this.
Comment 15 Stefan Dirsch 2007-05-11 07:57:53 UTC
JFYI.
Comment 16 Stefan Dirsch 2007-05-12 10:42:36 UTC
JFYI, Matthias. This is a bugreport, which is assigned to Egbert/me or with Egbert/me in CC or reported by Egbert/me.
Comment 17 Egbert Eich 2007-05-14 08:55:52 UTC
Originally dbus has not been desinged for network tranparency like X. Therefore X clients that also require some dbus communication simply cannot be used accross the network. dbux communication has nothing to do with X communicatin therefore it cannot be trivially added. It may be pssible to tunnel it thru X - but this is another area of exploration and not just a bug to fix.
Appearantly (according to above links) work is under way to implement network transparent dbus communication however instead of implementing a tcp transport for dbus - following the present trend in X - it should be investigated if it's pssible to forward dbus thru ssh and treat it similarly to X11 forwarding thru the same mechansim. This would of course not address the case where X apps are run accross a network using the tcp transport mechansim - which is however disabled im most case today anyhow.
- but this is totally out of the realm of X at present.

Comment 18 Stefan Dirsch 2007-12-02 22:10:04 UTC
(In reply to comment #14 from Stefan Dirsch)
> I take this back as enhancement. Gary, this probably needs to be added to
> FATE. Otherwise nobody will work on this.

Since this never happened, it can't be that important. Finally closing as WONTFIX.