Detect what Banshee is playing via terminal?

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help

Detect what Banshee is playing via terminal?

Postby Tachyon on Sat Aug 29, 2009 12:48 am

Hey, everyone!

Is there a terminal command that'll output the song currently playing in Banshee? Because I'm using the Logjam blog editor to write LiveJournal posts, and it's got this function where it'll detect what music you're playing. The thing is, it doesn't detect from Banshee. And it'll let you assign a custom command of some kind, but the default is

Code: Select all
sh -c "mpc | grep -v '^volume: .* repeat: .* random: .*'"

And that doesn't seem to work.

Any help?
Tree swallow photograph by IBM4831, and hosted on Flickr!
User avatar
Level 1
Level 1
Posts: 9
Joined: Thu Jun 04, 2009 7:57 pm

Linux Mint is funded by ads and donations.

Re: Detect what Banshee is playing via terminal?

Postby lagagnon on Sat Aug 29, 2009 10:06 am

That script line is for the mpc media player so of course it won't work.
I searched the Banshee forums for you and found this: ... nterfaces/

You need to query the dbus interfaces with some code, it looks quite involved to me!

EDIT: try launching "banshee --help" in a terminal and see what options you have ....
User avatar
Level 7
Level 7
Posts: 1888
Joined: Wed Jun 17, 2009 7:38 pm
Location: an island in the Pacific...

Return to Sound, Multimedia, & Codecs

Who is online

Users browsing this forum: No registered users and 6 guests