Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Banshee has the ability to control its main window from the command line using commands like

$ banshee --next

However when running these commands over ssh as the same user it simply tries to launch banshee.

Is there a way to push through to the other session when logged in with an ssh session.

I'm guessing this is more of an ssh/tty thing than a banshee thing but if it can be done I'd love to know.

Edit:

export $(strings /proc/*/environ| grep DBUS_SESSION | tail -1)

seems to work in my use case. Note there is a lot of permission denied output but you can ignore that.

via: http://machine-cycle.blogspot.com/2010/12/ssh-and-dbus-sessions.html

if anyone has a cleaner fix would love to see it.

share|improve this question
add comment

1 Answer

My guess is you're using DISPLAY to just dump the session to the X server, but what you need to do is pop up the right dbus channel.

This is a bit of a pain, but I have it working (just to show what's going on, this is not a good solution):

This is run locally:

tag@loki:~$ env | grep dbus
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbusxa7L6dRCEH,guid=f7056d1d174a3f5b7c680b9c0000006c

And when I ssh in:

tag@loki:~$ export DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-xa7L6dRCEH,guid=f7056d1d174a3f5b7c680b9c0000006c
tag@loki:~$ banshee --next

and it works fine :)

Hopefully someone with some dbus know-how can hop in :)

share|improve this answer
    
thanks for putting me on the right track, just need a way to get the dbus adress from the ssh connection and I should be sweet. –  Smithamax Jul 17 '11 at 1:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.