Forrest logo
back to the gsettings tool

gsettings:tldr:e8add

gsettings: Set the value of a key. Fails if the key doesn't exist or the value is out of range.
$ gsettings set ${org-example-schema} ${example-key} ${value}
try on your machine

The gsettings set command is used to set a new value for a specific key in the GSettings configuration database.

Here is a breakdown of the command:

  • ${org-example-schema}: This represents the name of the schema or application within the GSettings database. Schemas define the structure of the configuration options and keys available for a specific application.

  • ${example-key}: This refers to the specific key within the schema identified by ${org-example-schema} that you want to modify or set a new value for.

  • ${value}: This represents the value you want to assign to the ${example-key} in the ${org-example-schema} schema.

To use this command, you need to replace ${org-example-schema}, ${example-key}, and ${value} with the actual values corresponding to the schema, key, and value you want to set.

For example, if you have a schema called "com.example.app" with a key "enable-feature" that you want to set to "true", you would run the following command:

gsettings set com.example.app enable-feature true

This command will modify the GSettings database, updating the value of the "enable-feature" key in the "com.example.app" schema to "true".

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