![升级到 ubuntu 15.10 后 Soundconverter 无法工作](https://linux22.com/image/877741/%E5%8D%87%E7%BA%A7%E5%88%B0%20ubuntu%2015.10%20%E5%90%8E%20Soundconverter%20%E6%97%A0%E6%B3%95%E5%B7%A5%E4%BD%9C.png)
自从我升级到 ubuntu 15.10 后,soundconverter 就不再启动了。
这是我尝试启动它时的输出,没有任何参数
$ soundconverter
SoundConverter 2.1.5
using Gstreamer version: 0.10.36
using 4 thread(s)
using gio
Traceback (most recent call last):
File "/usr/bin/soundconverter", line 189, in <module>
gui_main(NAME, VERSION, GLADEFILE, files)
File "/usr/share/soundconverter/python/soundconverter/ui.py", line 1512, in gui_main
win = SoundConverterWindow(builder)
File "/usr/share/soundconverter/python/soundconverter/ui.py", line 1177, in __init__
self.prefs = PreferencesDialog(builder, self.widget)
File "/usr/share/soundconverter/python/soundconverter/ui.py", line 447, in __init__
self.set_widget_initial_values(builder)
File "/usr/share/soundconverter/python/soundconverter/ui.py", line 479, in set_widget_initial_values
uri = filename_to_uri(self.get_string('selected-folder'))
File "/usr/share/soundconverter/python/soundconverter/fileoperations.py", line 150, in filename_to_uri
filename = str(gnomevfs.URI(filename))
TypeError: could not parse URI
并安装 soundconverter 版本
$ apt-cache policy soundconverter
soundconverter:
Installé : 2.1.5-1
Candidat : 2.1.5-1
Table de version :
*** 2.1.5-1 0
500 http://fr.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
100 /var/lib/dpkg/status
strace -e open /usr/bin/soundconverter 的错误输出可以在这里找到:http://paste.ubuntu.com/13582686/
从 python 看到的路径结果:
$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02)
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> print(os.path.expanduser('~'))
/home/roms
正如您所猜测的,这是我的主目录,因为我使用 roms 作为用户名。