Gconf与Gsettings的简介、及gsettings的具体使用案例
来源:互联网 发布:淘宝企业店怎么过户 编辑:程序博客网 时间:2024/05/22 10:29
/********************************************************************* * 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后台的读取和设置;
现就举一个例子(以LinuxMint cinnamon桌面为例,):
在面板中使用了panel-launchers的key,那么如何得到这个的值呢?
第一步:
ufo@ufo:~$ gsettings list-schemas | grep cinnamon
可查找到cinnamon对应的方案为org.cinnamon
第二步,在此方案中查找key的值:
ufo@ufo:~$ gsettings list-recursively org.cinnamon | grep -w "panel-launchers"
org.cinnamon enabled-applets ['panel1:left:0:menu@cinnamon.org:0', 'panel1:left:1:show-desktop@cinnamon.org:1', 'panel1:left:2:panel-launchers@cinnamon.org:2', 'panel1:left:3:windowPreviewWindowList@dalcde:3', 'panel1:right:0:notifications@cinnamon.org:4', 'panel1:right:1:settings@cinnamon.org:5', 'panel1:right:2:removable-drives@cinnamon.org:6', 'panel1:right:3:bluetooth@cinnamon.org:7', 'panel1:right:4:network@cinnamon.org:8', 'panel1:right:5:sound@cinnamon.org:9', 'panel1:right:6:power@cinnamon.org:10', 'panel1:right:7:systray@cinnamon.org:11', 'panel1:right:8:cpu-monitor@iscas.as.cn:12', 'panel1:right:9:calendar@cinnamon.org:13', 'panel1:right:10:windows-quick-list@cinnamon.org: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
org.cinnamon enabled-applets ['panel1:left:0:menu@cinnamon.org:0', 'panel1:left:1:show-desktop@cinnamon.org:1', 'panel1:left:2:panel-launchers@cinnamon.org:2', 'panel1:left:3:windowPreviewWindowList@dalcde:3', 'panel1:right:0:notifications@cinnamon.org:4', 'panel1:right:1:settings@cinnamon.org:5', 'panel1:right:2:removable-drives@cinnamon.org:6', 'panel1:right:3:bluetooth@cinnamon.org:7', 'panel1:right:4:network@cinnamon.org:8', 'panel1:right:5:sound@cinnamon.org:9', 'panel1:right:6:power@cinnamon.org:10', 'panel1:right:7:systray@cinnamon.org:11', 'panel1:right:8:cpu-monitor@iscas.as.cn:12', 'panel1:right:9:calendar@cinnamon.org:13', 'panel1:right:10:windows-quick-list@cinnamon.org: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的值。
gconf对应的文件是以文本文件存在的,在Linux Mint系统中主要存放在以下两个位置:
/usr/share/glib-2.0/schemas/
/usr/share/gconf/schemas/
Ref:
http://en.wikipedia.org/wiki/GConf
http://wiki.mate-desktop.org/docs:gsettings
0 0
- Gconf与Gsettings的简介、及gsettings的具体使用案例
- Ubuntu 中 gconf, dconf, gsettings 和 dconf-editor 的功能与使用
- GSettings简介和使用
- gsettings
- GSettings 稍长一点的简介和用法
- gsettings简介及常用操作介绍
- Gsettings and GConf 介绍、侧重点比较
- 在ubuntu中gsettings的命令使用及查找到系统挂起的未活动的超时时间的值的获取方法
- gsettings-schema-convert
- rebuild gsettings schemas
- gconf-editor的使用
- centos emacs build gsettings error
- linux GSettings 和设置字体
- DBUtils的具体使用案例。
- Gconf系统配置的介绍。
- Gconf系统配置的介绍。
- 无脑利用gsettings修改截图默认保存位置
- SoundPool与MediaPlayer的简介及使用
- STM32的 位寻址(地址映射)
- 初学osg 感悟
- 再入时落速控制问题
- HTML5 - 吊炸天的iMac Lion桌面
- 2.Glance详解
- Gconf与Gsettings的简介、及gsettings的具体使用案例
- Java各种获取系统当前时间方法 和 格式
- C语言(六)
- 新来的
- iOS7开发-Apple苹果iPhone开发Xcode官方文档翻译PDF下载地址(2014年2月19日更新版)
- Hibernate执行查询后更新了数据库
- scanf
- hive 空值、NULL判断
- 专利信息资源将免费开放