What are the common operations in gsettings
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!