症状:
root@ThinkPad:/# gnome-control-center
=>gnome-control-center
正确打开并显示所有模块
root@ThinkPad:/# gnome-control-center sound
=>gnome-control-center
打开声音面板
anynormaluser@ThinkPad:~$ gnome-control-center
=>gnome-control-center
打开显示仅 3模块:语言、打印机、软件
anynormaluser@ThinkPad:~$ gnome-control-center sound
** (gnome-control-center:12466): WARNING **: Could not find settings panel "sound"
所有文件/目录 对于所有用户来说都是可读/可执行的/usr/share/gnome-control-center
。/usr/lib/control-center-1/panels
尝试:
gnome-control-center
使用 synaptic重新安装。
结果:问题依旧!
以非 root 用户身份进行 strace:
...
open("/usr/share/applications/gnome-sound-panel.desktop", O_RDONLY|O_LARGEFILE) = 15
fstat64(15, {st_mode=S_IFREG|0644, st_size=634, ...}) = 0
read(15, "[Desktop Entry]\nName=Sound\nComme"..., 4096) = 634
...
open("/usr/share/applications/gnome-sound-nua-panel.desktop", O_RDONLY|O_LARGEFILE) = 15
fstat64(15, {st_mode=S_IFREG|0644, st_size=636, ...}) = 0
read(15, "[Desktop Entry]\nName=Sound\nComme"..., 4096) = 636
...
任何用户都可以读取声音面板桌面文件,但图标也不会显示!
如何摆脱这个问题?
如何gnome-control-center
“找到”它的模块?
答案1
如果您运行的是 Gnome 以外的其他环境,则由于 Gnome 桌面文件中的指令,图标是不可见的。
看/usr/share/applications/gnome*panel.desktop
并在文件中搜索以下行
OnlyShowIn=GNOME;
您可以删除此行或将您的环境附加到列表中。可能的值列在此处:
对于 Unity,您只需安装统一控制中心它会自动解决你的这种情况:
sudo apt-get install unity-control-center