Apps that use D-Bus don't work over SSH

Bug #162672 reported by Endolith
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

If you run an application remotely, such as with "ssh -X", the parts of the app that use D-Bus don't work. See:

http://ubuntuforums.org/showthread.php?p=3769645

http://ubuntuforums.org/showthread.php?t=569109

https://answers.launchpad.net/ubuntu/+question/15070

Revision history for this message
Endolith (endolith) wrote :

boutil from ubuntu forums says

export `dbus-launch`

might fix the problem. More details on this would be helpful.

Michael Nagel (nailor)
Changed in dbus:
status: New → Incomplete
Revision history for this message
Michael Nagel (nailor) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in dbus:
status: Incomplete → Invalid
Revision history for this message
Endolith (endolith) wrote :

What further information do you need?

Changed in dbus:
status: Invalid → New
Revision history for this message
Michael Nagel (nailor) wrote :

i misinterpreted your quote of boutil in the post above. sorry.

ps: check if your problem is related to bug 221363

Revision history for this message
Endolith (endolith) wrote :

I don't think that's related. This is about X forwarding, not NX.

I've since found this, which makes me think that D-Bus doesn't even work like this:

http://www.freedesktop.org/wiki/Software/DBusRemote

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

D-Bus is not intended to work over SSH.

This actually requires a LOT more thought than you realise. For example, let's say you are running banshee on the remote box.

Should that banshee see the attached iPods on the remote box, or on the local box?

If on the remote box, you actually don't _want_ D-Bus forwarded over ssh - you want to know about the system bus at the remote end, and maybe a session bus just for your ssh session?

If on the local box, you now have to deal with the fact the devices are on the local system - so you need something like nbd to forward them across ssh as well.

This Is Not A Simple Problem

Changed in dbus (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
status: Triaged → Won't Fix
Revision history for this message
Endolith (endolith) wrote :

"Should that banshee see the attached iPods on the remote box, or on the local box?"

Both, obviously.

Since there are already plans to fix this, I think the "Won't Fix" is inappropriate.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 162672] Re: Apps that use D-Bus don't work over SSH

On Wed, 2009-07-15 at 13:59 +0000, Endolith wrote:

> Since there are already plans to fix this, I think the "Won't Fix" is
> inappropriate.
>
Nobody has any plans to fix this.

Scott
--
Scott James Remnant
<email address hidden>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.