mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 23:17:58 +01:00
dconf, dconf-write: add page (#5967)
This commit is contained in:
parent
a647b75b19
commit
f82fd9c8f3
2 changed files with 41 additions and 0 deletions
24
pages/linux/dconf-write.md
Normal file
24
pages/linux/dconf-write.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# dconf write
|
||||
|
||||
> Write a value to a dconf database path.
|
||||
> More information: <https://developer.gnome.org/dconf>.
|
||||
|
||||
- Write a string to a dconf path (note the nested quotes):
|
||||
|
||||
`dconf write {{/example/dconf/path}} "'{{Example Value}}'"`
|
||||
|
||||
- Write a boolean to a dconf path:
|
||||
|
||||
`dconf write {{/example/dconf/path}} {{true|false}}`
|
||||
|
||||
- Write an integer to a dconf path:
|
||||
|
||||
`dconf write {{/example/dconf/path}} {{16}}`
|
||||
|
||||
- Write an array to a dconf path:
|
||||
|
||||
`dconf write {{/example/dconf/path}} "[{{'My First Value', 'My Second Value'}}]"`
|
||||
|
||||
- Write an empty array to a dconf path:
|
||||
|
||||
`dconf write {{/example/dconf/path}} "@as []"`
|
17
pages/linux/dconf.md
Normal file
17
pages/linux/dconf.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# dconf
|
||||
|
||||
> Simple tool for manipulating dconf databases.
|
||||
> See also `dconf write`.
|
||||
> More information: <https://developer.gnome.org/dconf>.
|
||||
|
||||
- Print the value of a dconf path:
|
||||
|
||||
`dconf read {{/example/dconf/path}}`
|
||||
|
||||
- List contents of a dconf path:
|
||||
|
||||
`dconf list {{/example/dconf/path}}`
|
||||
|
||||
- Watch for dconf database changes in a path and subpaths:
|
||||
|
||||
`dconf watch {{/example/dconf/path}}`
|
Loading…
Reference in a new issue