在计算机之间同步 gnome 3(面板)设置

Tho*_*och 5 gnome-panel gnome3 dconf gnome-classic gsettings

我想在计算机之间同步我的 gnome 面板的配置并将配置保留在 Git 中。如何转储/导入必要的信息?我已经找到gconftool2 --dump但没有找到任何看起来像我的面板配置的东西。

更新:我使用 gnome3 经典模式(连同 xmonad 作为窗口管理器)。我在 org.gnome.gnome-panel.layout 下的 dconf-editor 中找到了配置设置。然而,想出正确的 shell 脚本来提取和同步我想要共享的配置仍然很麻烦。

我在 gnome bugzilla 中为 dconf 同步工具打开了一个愿望清单问题:710930

小智 7

更新答案

使用 dconf(您正在使用),可以使用以下命令转储 gnome-panel 的配置:

dconf dump /org/gnome/gnome-panel/layout > settings.txt

然后您可以编辑文件(它是纯文本文件)以仅包含您要同步的设置,然后从文件中加载设置,如下所示:

dconf load /org/gnome/gnome-panel/layout < settings.txt

原答案

我认为gconftool应该工作得很好。以下命令将转储GNOME的面板设置(从目录~/.gconf/apps/panel)到名为.xml文件backup.xmlgconftool --dump /apps/panel > backup.xml

然后执行以下操作以从backup.xml:加载配置gconftool --load backup.xml