Forrest logo
back to the gsettings tool

gsettings:tldr:4e7ee

gsettings: Display schema-allowed values for a key (helpful with enum keys).
$ gsettings range ${org-example-schema} ${example-key}
try on your machine

The command "gsettings range ${org-example-schema} ${example-key}" is used to retrieve the permissible range of values for a particular key in a specific schema within the GSettings system.

Here's a breakdown of the command:

  • "gsettings": This is the command-line tool used to interact with the GSettings configuration system.
  • "range": This is the option used to retrieve the range of permissible values.
  • "${org-example-schema}": This refers to the schema where the key is defined. It should be replaced with the actual schema identifier, often in the form of "org.example.schema".
  • "${example-key}": This indicates the specific key within the schema for which you want to retrieve the range of values. It should be replaced with the actual key name.

For example, if you wanted to retrieve the range of values for the "example-key" within the "org.example.schema" schema, you would use the command: "gsettings range org.example.schema example-key"

Executing this command will provide you with the minimum and maximum values that can be assigned to the specified key, as well as additional information like the type of the values.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gsettings tool