Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common operations in gsettings

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "what are the common operations in gsettings", the content is simple and clear, and I hope it can help you solve your doubts. Let me lead you to study and learn this article "what are the common operations in gsettings?"

Gsettings provides command-line operations on GSetings.

GSetings is actually a set of advanced API used to manipulate dconf.

Dconf stores the configuration of GNOME3 and is in binary format. It exists as a back-end system for GSettings, exposing low-level API. In the GNOME2 era, a similar role was gconf, but it was stored as XML text.

In a more approachable way, dconf is the registry of GNOME3, and gsettings is a command-line tool for querying, reading, and setting registry keys.

List all schema

Gsettings list-schemas

Find a schema

Gsettings list-schemas | grep "org.gnome.settings-daemon.plugins.keyboard" org.gnome.settings-daemon.plugins.keyboard

Find all the key under a schema

Gsettings list-keys "org.gnome.settings-daemon.plugins.keyboard" activepriority

Check the value of a key under a schema

Gsettings get "org.gnome.settings-daemon.plugins.keyboard" priority0

View the value type of a key under a schema

This is a plastic surgery.

Gsettings range "org.gnome.settings-daemon.plugins.keyboard" prioritytype I

This is a boolean type

Gsettings range "org.gnome.settings-daemon.plugins.keyboard" activetype b

Set the value of a key under a schema

Gsettings set "org.gnome.settings-daemon.plugins.keyboard" active false

You can also search schema and keys at the same time.

Gsettings list-recursively | grep "org.gnome.settings-daemon.plugins.keyboard" org.gnome.settings-daemon.plugins.keyboard active falseorg.gnome.settings-daemon.plugins.keyboard priority 0org.gnome.settings-daemon.plugins.keyboard active falseorg.gnome.settings-daemon.plugins.keyboard priority 0 is all the contents of the article "what are the common operations in gsettings?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report