Refresh `dconf-write`:

- add link to `dconf` in `See also`
- fix man page url
- standardize examples with other `dconf` pages
feature/refresh-dconf
EmilySeville7cfg 2022-04-17 15:50:23 +10:00
parent b284e43042
commit 45cc721fd3
1 changed files with 17 additions and 12 deletions

View File

@ -1,24 +1,29 @@
# dconf write # dconf write
> Write a value to a dconf database path. > Write key values in dconf databases.
> More information: <https://developer.gnome.org/dconf>. > See also: `dconf`.
> More information: <https://manned.org/dconf>.
- Write a string to a dconf path (note the nested quotes): - Write a specific key value:
`dconf write {{/example/dconf/path}} "'{{Example Value}}'"` `dconf write {{/path/to/key}} "{{value}}"`
- Write a boolean to a dconf path: - Write a specific string key value:
`dconf write {{/example/dconf/path}} {{true|false}}` `dconf write {{/path/to/key}} "'{{string}}'"`
- Write an integer to a dconf path: - Write a specific integer key value:
`dconf write {{/example/dconf/path}} {{16}}` `dconf write {{/path/to/key}} "{{5}}"`
- Write an array to a dconf path: - Write a specific boolean key value:
`dconf write {{/example/dconf/path}} "[{{'My First Value', 'My Second Value'}}]"` `dconf write {{/path/to/key}} "{{true|false}}"`
- Write an empty array to a dconf path: - Write a specific array key value:
`dconf write {{/example/dconf/path}} "@as []"` `dconf write {{/path/to/key}} "[{{'first', 'second', ...}}]"`
- Write a specific empty array key value:
`dconf write {{/path/to/key}} "@as []"`