I'm running Ubuntu Fiesty on my personal box, and to get around a problem described here: http://ubuntuforums.org/showthread.php?t=438639, I tried to do this in a shell script:
#!/bin/sh
export DBUS_SESSION_BUS_ADDRESS=`echo $DBUS_SESSION_BUS_ADDRESS` && rhythmbox-client --play-pause
The problem is that the echo statement in the backtick goes into the export, not the eval-ed value. I tried a few combinations of "sh -c ..." but nothing seemed to work. BTW I'm on bash.
Pointers?
#!/bin/sh
export DBUS_SESSION_BUS_ADDRESS=`echo $DBUS_SESSION_BUS_ADDRESS` && rhythmbox-client --play-pause
The problem is that the echo statement in the backtick goes into the export, not the eval-ed value. I tried a few combinations of "sh -c ..." but nothing seemed to work. BTW I'm on bash.
Pointers?