Detect what Banshee is playing via terminal?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Tachyon

Detect what Banshee is playing via terminal?

Post by Tachyon »

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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
lagagnon

Re: Detect what Banshee is playing via terminal?

Post by lagagnon »

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:

http://banshee-project.org/contribute/w ... 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 ....
Locked

Return to “Sound”