debiancn / repo

Debian CN Community Repo
224 stars 16 forks source link

netease-cloud-music 无法正常启动 #132

Open ksqsf opened 6 years ago

ksqsf commented 6 years ago

系统版本:Debian stretch

ksqsf@veritas:~$ netease-cloud-music 
Gtk-Message: Failed to load module "canberra-gtk-module"
[0306/172437.142557:ERROR:nss_util.cc(802)] After loading Root Certs, loaded==false: NSS error code: -8018
Local file: "" ("netease-cloud-music")

删除 ~/.pki 后 nss 错误消失,但无法仍无法正常运行

ksqsf@veritas:~$ netease-cloud-music 
Gtk-Message: Failed to load module "canberra-gtk-module"
Local file: "" ("netease-cloud-music")

使用 root 权限可以运行

ksqsf@veritas:~$ sudo netease-cloud-music 
Gtk-Message: Failed to load module "canberra-gtk-module"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
hosiet commented 6 years ago

另见 #120

ksqsf commented 6 years ago

目前唯一可靠的 workaround 是启动前移走 ~/.ICEauthority,启动后移回来(避免破坏其他程序),似乎对程序功能没有什么影响。

我觉得可以写一个包装脚本来自动做这件事。(由于没有发现 source pak,所以没有 PR。)

bigshans commented 5 years ago

https://www.zhihu.com/question/277330447/answer/478510195 这个我试了,需要把命令写到一个 shell 脚本里可以启动,desktop 里不能正常启动。个人 testing ,在cinnamon 下这样可以运行。

bigshans commented 5 years ago

啊啊,我是用官方 ubuntu 的版本。

yunfhu commented 5 years ago

sudo执行可以用,亲测,可以在desktop配置里加sudo执行