Gconf與Gsettings的簡介、及gsettings的具體使用案例

來源:互聯網
上載者:User

標籤:des   style   http   io   ar   color   使用   sp   for   

/********************************************************************* * 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/GConfhttp://wiki.mate-desktop.org/docs:gsettings


Gconf與Gsettings的簡介、及gsettings的具體使用案例

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.