Introduction to GConf and gsettings, and the specific use cases of gsettings

Source: Internet
Author: User

/********************************************************************* * Author:samson * date:12/11/2014 * Test PL Atform: * 3.13.0-24-generic * GNU bash, 4.3.11 (1)-release * *********************************** ********************************/

GConf is a system used by Thegnome desktop environment for storingconfiguration settings for the desktop and applications . It's similar to the Windows Registry.
GConf is a system that stores the configuration of the GNOME desktop environment to facilitate desktop and application configuration and is run in the background. Can be understood to be a thing similar to the registry under Windows;
And Gsettings is the gconf background reading and setting;
now take an example:
using the Panel-launchers key in the panel, how do you get this value? The first step:
[email protected]:~$ gsettings list-schemas | grep cinnamoncan find cinnamon corresponding scheme for Org.cinnamon
The second step is to find the value of the key in this scenario:
[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

you can see the value of Panel-launchers.

Ref:
http://en.wikipedia.org/wiki/GConfhttp://wiki.mate-desktop.org/docs:gsettings


Introduction to GConf and gsettings, and the specific use cases of gsettings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.