/********************************************************************* * Author : Samson * Date : 12/11/2014 * Test platform: * 3.13.0-24-generic * GNU bash, 4.3.11(1)-release * *******************************************************************/
GConf was a system used by theGNOME desktop environment for storingconfiguration
settings for the desktop and applications. It is similar to the Windows Registry.
Gconf是一个存储GNOME桌面环境配置的一个系统,以方便桌面和应用程序的配置,是后台运行的。可以理解为是一个类似于windows下的注册表的一个东西;
而gsettings是对GConf后台的读取和设置;
现就举一个例子:
在面板中使用了panel-launchers的key,那么如何得到这个的值呢?
第一步:
[email protected]:~$ gsettings list-schemas | grep cinnamon
可查找到cinnamon对应的方案为org.cinnamon
第二步,在此方案中查找key的值:
[email protected]:~$ gsettings list-recursively org.cinnamon | grep -w "panel-launchers"
org.cinnamon enabled-applets [‘panel1:left:0:[email protected]:0‘, ‘panel1:left:1:[email protected]:1‘, ‘panel1:left:2:[email protected]:2‘, ‘panel1:left:3:[email protected]:3‘, ‘panel1:right:0:[email protected]:4‘,
‘panel1:right:1:[email protected]:5‘, ‘panel1:right:2:[email protected]:6‘, ‘panel1:right:3:[email protected]:7‘, ‘panel1:right:4:[email protected]:8‘, ‘panel1:right:5:[email protected]:9‘, ‘panel1:right:6:[email protected]:10‘, ‘panel1:right:7:[email protected]:11‘,
‘panel1:right:8:[email protected]:12‘, ‘panel1:right:9:[email protected]:13‘, ‘panel1:right:10:[email protected]:14‘]
org.cinnamon panel-launchers [‘firefox.desktop‘, ‘gnome-screenshot.desktop‘, ‘gnome-terminal.desktop‘, ‘thunderbird.desktop‘, ‘fcitx-configtool.desktop‘, ‘cinnamon-custom-launcher-3.desktop‘]
org.cinnamon panel-launchers-draggable true
可看出panel-launchers的值。
Ref:
http://en.wikipedia.org/wiki/GConf
http://wiki.mate-desktop.org/docs:gsettings