user55510
user55510

Reputation: 61

show lyrics on ubuntu

I'm writing a little script for Ubuntu. My intention is to call rhythmbox lyrics plug-in with a global short-cut (configuring gnome) . I can call it from rhythmbox python console, but I don't know how to import rhythmbox built-in modules (eg. rhythmdb).
Any ideas?

Upvotes: 0

Views: 1170

Answers (2)

Bunny Rabbit
Bunny Rabbit

Reputation: 8411

in this case i guess you'll have to write the whole plugin yourself and , then listen to dbus for change of songs in rhythmbox , to detect which song is being played .

Upvotes: 0

tonfa
tonfa

Reputation: 24491

You can't import rhythmbox "built-in" modules from a standard python console.

As far as I know they aren't real modules, they are just objects from the rhythmbox process exposed to plugins. So you can access them only if you are running your script from the rhythmbox process.

Upvotes: 2

Related Questions