gsettings

本文详细介绍了GSettings配置工具的使用方法,包括获取、设置、监视、重置键值等功能,以及如何查看和管理各种配置选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

gsettings

gsettings — GSettings configuration tool

 

Synopsis

gsettings get SCHEMA [:PATH] KEY

gsettings monitor SCHEMA [:PATH] KEY

gsettings writable SCHEMA [:PATH] KEY

gsettings range SCHEMA [:PATH] KEY

gsettings set SCHEMA [:PATH] KEY VALUE

gsettings reset SCHEMA [:PATH] KEY

gsettings list-schemas

gsettings list-relocatable-schemas

gsettings list-keys SCHEMA [:PATH]

gsettings list-children SCHEMA [:PATH]

gsettings list-recursively SCHEMA [:PATH]

gsettings help [COMMAND]

Description

gsettings offers a simple commandlineinterface to GSettings.It lets you get, set or monitor an individual key for changes.

The SCHEMA and KEYarguments are required for most commands to specify the schema id and thename of the key to operate on. The schema id may optionally have a:PATH suffix. Specifying the path is only neededif the schema does not have a fixed path.

When setting a key, you also need specify a VALUEThe format for the value is that of a serializedGVariant,so e.g. a stringmust include explicit quotes: "'foo'". This format is also used when printingout values.

Commands

get

Gets the value of KEY.The value is printed out as a serialisedGVariant.

monitor

Monitors KEY for changes and prints the changedvalues. Monitoring will continue until the process is terminated.

writable

Finds out whether KEY is writable.

range

Queries the range of valid values for KEY.

set

Sets the value of KEY toVALUE. The value is specified as a serialisedGVariant.

reset

Resets KEY to its default value.

list-schemas

Lists the installed, non-relocatable schemas.See list-relocatable-schemas if you are interested inrelocatable schemas.

list-relocatable-schemas

Lists the installed, relocatable schemas.See list-schemas if you are interested innon-relocatable schemas.

list-keys

Lists the keys in SCHEMA.

list-children

Lists the children of SCHEMA.

list-recursively

Lists keys and values, recursively.

help

Prints help and exits.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值