简体   繁体   English

在ubuntu上显示歌词

[英]show lyrics on ubuntu

I'm writing a little script for Ubuntu. 我正在为Ubuntu写一个小脚本。 My intention is to call rhythmbox lyrics plug-in with a global short-cut (configuring gnome) . 我的意图是使用全局快捷方式(配置gnome)来调用rhythmbox歌词插件。 I can call it from rhythmbox python console, but I don't know how to import rhythmbox built-in modules (eg. rhythmdb). 我可以从rhythmbox python控制台调用它,但是我不知道如何导入rhythmbox内置模块(例如rhythmdb)。
Any ideas? 有任何想法吗?

You can't import rhythmbox "built-in" modules from a standard python console. 您无法从标准python控制台导入rhythmbox“内置”模块。

As far as I know they aren't real modules, they are just objects from the rhythmbox process exposed to plugins. 据我所知,它们不是真正的模块,它们只是来自Rhythmbox进程的,暴露给插件的对象。 So you can access them only if you are running your script from the rhythmbox process. 因此,只有在Rhythmbox进程中运行脚本时才能访问它们。

在这种情况下,我想您必须自己编写整个插件,然后听dbus在Rhythmbox中更改歌曲,以检测正在播放的歌曲。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM