为什么 gsettings 和 dconf 返回不同的值?

为什么 gsettings 和 dconf 返回不同的值?

根据这个帖子,它似乎gsettings用作dconf后端。因此,我期望以下命令输出相同的结果:

$ gsettings get org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins
['core', 'composite', 'opengl', 'compiztoolbox', 'decor', 'vpswitch', 'snap', 'mousepoll', 'resize', 'place', 'move', 'wall', 'grid', 'regex', 'imgpng', 'session', 'gnomecompat', 'animation', 'fade', 'workarounds', 'scale', 'expo', 'ezoom', 'switcher']

$ dconf read /org/compiz/profiles/unity/plugins/core/active-plugins 
['core', 'composite', 'opengl', 'place', 'put', 'regex', 'resize', 'session', 'snap', 'vpswitch', 'wall', 'animation', 'commands', 'compiztoolbox', 'copytex', 'fade', 'grid', 'imgpng', 'mousepoll', 'move', 'scale', 'unitymtgrabhandles', 'workarounds', 'expo', 'unityshell']

但如您所见,它们没有。我是否遗漏了什么,或者这是一个错误?(Ubuntu 18.04 和 Unity)


注1:来自 gsettings 的手册页:

请注意,gsettings 需要 D-Bus 会话总线连接才能将更改写入 dconf 数据库。

我如何检查我的电脑是否存在这种情况?

笔记2:我记得在某个时候看到过有关 gir1.2 包在apt autoremove命令期间被卸载的信息,但我记不清是哪一个了。这可能与此有关吗?gir1.2我应该卸载哪些包?需要如果我使用 Unity,该怎么办?

相关内容