当前位置:网站首页>gconf/dconf编程实战(1)gconf和dconf介绍
gconf/dconf编程实战(1)gconf和dconf介绍
2022-08-01 14:39:00 【奇妙之二进制】
一、背景
在Windows操作系统中有注册表,同样在Linux中也有类似注册表的东西(对应用程序进行配置以及管理),Linux操作系统(Ubuntu已确认,其他系统未确认)中有两种配置存储系统:
gconf,基于XML的数据库(后端系统),它有一个界面编辑器gconf-editor。主要是在基于gnome2的Linux操作系统中,比较老。
dconf,基于BLOB的数据库(后端系统),它有一个界面编辑器dconf-editor,比较新。
在gnome3中,gconf已经完全被dconf所替代。同时还有另外一个工具:
gsettings,用于编辑设置存储后端的CLI工具,在Linux上它使用dconf,在Windows上它使用注册表,在OS X上它使用本机数据存储。
gconf也有自己的前端工具,gconftool。
二、dconf 安装和使用
在桌面系统中,一般通过界面编辑器比较方便于配置编辑,dconf-editor不一定系统有缺省安装,如果没有的话,可以通过命令安装:
sudo apt install dconf-tools
或
sudo apt install dconf-editor
安装后执行命令:
dconf-editor
即可打开界面编辑器,如:
dconf以层级的形式管理配置:
每项配置都有一些固有属性,例如类型,描述等,这个叫schema。
三、gsettings 使用
输入命令:gsettings -h,可以查看帮助信息,如:
[email protected]:~$ gsettings
Usage:
gsettings --version
gsettings [--schemadir SCHEMADIR] COMMAND [ARGS…]
Commands:
help Show this information
list-schemas List installed schemas
list-relocatable-schemas List relocatable schemas
list-keys List keys in a schema
list-children List children of a schema
list-recursively List keys and values, recursively
range Queries the range of a key
describe Queries the description of a key
get Get the value of a key
set Set the value of a key
reset Reset the value of a key
reset-recursively Reset all values in a given schema
writable Check if a key is writable
monitor Watch for changes
Use “gsettings help COMMAND” to get detailed help.
边栏推荐
- gpio analog serial communication
- ABC260 E - At Least One (Dual Pointer)
- SQL每日一练(牛客新题库)——第3天: 条件查询
- 产品力无提升的雷克萨斯新款ES ,为何敢于涨价?
- 易优压双驱挖掘机压路机器类网站源码 v1.5.8
- 测试如何拓展自己的知识面?
- what is tail tooth feast
- 什么是闭包?
- wordpress模板函数说明备注整理收藏
- 2022-08-01 Daily: 18 graphs to intuitively understand neural networks, manifolds and topology
猜你喜欢
Timezone setting in MySQL
通胀持续 肯尼亚粮食安全引关注
Inflation continues, Kenya's food security a concern
热心肠:关于肠道菌群和益生菌的10个观点
重磅!国内首个开放式在线绘图平台Figdraw突破10万用户!发布《奖学金激励计划》:最高5000元!...
The soul asks: How does MySQL solve phantom reads?
uniapp 获取cookie与携带cookie请求数据
倪光南:openEuler已达国际同类社区水准
Next-ViT学习笔记
[LiteratureReview]Optimal and Robust Category-level Perception: Object Pose and Shape Estimation f
随机推荐
通胀持续 肯尼亚粮食安全引关注
反序列化漏洞详解
Wovent Bio IPO: Annual revenue of 480 million pension fund is a shareholder
如何快速将Zabbix5.0升级至6.0?
WPF如何自定义隐藏下拉框选项
Stock Strategy 02 | Technology Timing + Industry Factors + Market Value Rotation
MBI5020 LED驱动
[机缘参悟-57]:《素书》-4-修身养志[本德宗道章第四]
【论文笔记】MiniSeg: An Extremely Minimum Network for Efficient COVID-19 Segmentation
String comparison size in MySQL (date string comparison problem)
牛客刷SQL--6
docker部署mysql并修改其占用内存大小
2022-08-01日报:18张图,直观理解神经网络、流形和拓扑
长江欧拉生态创新中心成立,武汉数字经济再添坚实底座
输出0-1背包问题的具体方案 ← 利用二维数组
龙口联合化学通过注册:年营收5.5亿 李秀梅控制92.5%股权
Next-ViT学习笔记
微信UI在线聊天源码 聊天系统PHP采用 PHP 编写的聊天软件,简直就是一个完整的迷你版微信
MBI5020 LED Driver
尾牙宴是什么