今天,突然之间,我的主题和图标重置为默认样式。有趣的是,这种情况并不是到处都发生。系统设置中的图标与以前一样;Unity Launchbar 有默认图标。当我启动文件资源管理器 (Nautilus) 时,我的图标是默认图标;当我从终端使用 sudo 启动 Nautilus 时,我选择的图标会重新出现(但仅出现在此窗口中)。
发生了什么?
如果我输入compiz --replace
,所有内容都会返回到我的主题/图标集,但 Unity 启动栏没有我的快捷方式。
此外,还会出现以下错误:
compiz (core) - Info: Loading plugin: unityshell
compiz (core) - Info: Starting plugin: unityshell
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'org.gnome.Shell' yet as we don't have a connection, waiting for it...
WARN 2016-01-20 12:13:52 unity.debug.interface DebugDBusInterface.cpp:217 Unable to load entry point in libxpathselect: libxpathselect.so.1.4: cannot open shared object file: No such file or directory -- full D-Bus introspection will not be available
WARN 2016-01-20 12:13:52 xim.controller XIMController.cpp:103 IBus natively supported.
WARN 2016-01-20 12:13:52 unity.dash.gsettingsscopereader GSettingsScopes.cpp:108 Error fetching protocol metadata for scope: social.scope : Valid key file could not be found in search dirs
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'com.canonical.Unity.Launcher' yet as we don't have a connection, waiting for it...
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'com.canonical.Unity.Dash' yet as we don't have a connection, waiting for it...
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'org.gnome.SessionManager.EndSessionDialog' yet as we don't have a connection, waiting for it...
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'com.canonical.Unity.Session' yet as we don't have a connection, waiting for it...
WARN 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:593 Can't register object 'org.gnome.ScreenSaver' yet as we don't have a connection, waiting for it...
ERROR 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:538 DBus name lost 'org.gnome.Shell'
ERROR 2016-01-20 12:13:52 unity.glib.dbus.server GLibDBusServer.cpp:538 DBus name lost 'com.canonical.Unity'
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
WARN 2016-01-20 12:13:52 unity.key.gnome.grabber GnomeKeyGrabber.cpp:99 Trying to grab a disabled action, we skip it
答案1
我解决了它(至少看起来像是一个修复)。
输入后compiz --replace
,Unity 桌面的大部分内容都正常了,但有些东西仍然很奇怪,每次启动 Ubuntu 时我都必须输入此命令。
配置似乎有问题,因此桌面再次恢复“正常”后,我首先输入
dconf reset -f /org/compiz/
重置配置,然后
setsid unity
重新启动桌面。我注销,然后重新登录,一切恢复正常,所有图标都正常,主题也正常 - 问题解决了。