Hi. I wrote a small script for controlling Rhythmbox over the command line, especially for use across ssh (think remote control). Since Ubuntu is moving toward Banshee I am working to create a similar script for it. (The script should be much better as there are more controls available.)
Here is the Rhythmbox script:
Script for Skipping Tracks
You will note that I make use of the $DISPLAY variable. This is important in a remote situation so that the system knows where to locate the running instance of Rhythmbox. (It is innocuous in a local situation.)
I have tried running the same basic command for Banshee but it spawns a new instance each time. I have confirmed $DISPLAY on the remote box (using echo $DISPLAY.).
Here is my test command:
This returns the artist when run locally (with or without DISPLAY).Code:DISPLAY=:0.0 banshee --query-artist
Ok. I threw together a script for review:
It is working well, but all feedback is appreciated.