执行时
radiotray --resume
它将给出下面的输出,基本上表明--resume 是作为 url 加载的,而不是作为参数加载。
Trying to load URL: --resume
Loading configuration...
/home/roel/.local/share/radiotray/bookmarks.xml
/home/roel/.local/share/radiotray/config.xml
/usr/share/radiotray/config.xml
PLS playlist decoder
M3U playlist decoder
ASX-familiy playlist decoder
XSPF playlist decoder
ASF playlist decoder
RAM playlist decoder
Using url timeout = 100
/usr/lib/python2.7/dist-packages/radiotray/lib/utils.py:40: GtkWarning: IA__gtk_radio_button_set_group: assertion '!g_slist_find (group, radio_button)' failed
ui.add_from_file(join(common.DEFAULT_CFG_PATH, name))
user chose app indicator
^CTraceback (most recent call last):
File "/usr/bin/radiotray", line 15, in <module>
radiotray.main(sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/radiotray/radiotray.py", line 35, in main
RadioTray(argv[0])
File "/usr/lib/python2.7/dist-packages/radiotray/RadioTray.py", line 90, in __init__
self.systray.run()
File "/usr/lib/python2.7/dist-packages/radiotray/SysTray.py", line 447, in run
gtk.main()
KeyboardInterrupt
更新
我发现每次我从命令行启动 Radiotray 时都会弹出“首次启动”对话框。也许这是对问题的一个提示?
答案1
在 Ubuntu 11.10 中,Radiotray 版本是 0.6.4。最新版本是 0.7,因此我决定从 sourceforge 下载最新的 .deb 并在我的 PC 上安装最新版本。这解决了这个问题。