-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support almost arbitrary characters in dir names
dconf itself places minimal restrictions on key paths. `dconf_is_key` and `dconf_is_dir` just stipulate the following: - Path must start with `/`. - Path must not contain `//`. - Key paths must not end with `/`. - Directory paths must end with `/`. So in theory, they can all contain special characters like `[]*#@`. In practice, `dconf dump` will fail to print paths containing `[` or `]` due to limitations of `GKeyFile` enforced by `g_key_file_is_group_name` so those or control characters will not really appear in input of dconf2nix. But it can still contain all other kinds of characters including spaces at the start or end. Keys have slightly tighter restrictions introduced by `g_key_file_is_key_name`. Whitespace is only allowed in the middle of a key and `=` is not allowed at all. `[` and `]` are not allowed either, except at the end in a subkey suffix, which has further restrictions. But I doubt anyone will want special characters in keys so I am only extending it with an underscore.
- Loading branch information
Showing
4 changed files
with
18 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[ org/gnome/Characters ] | ||
[org/gnome/Characters] | ||
recent-characters=['💡'] | ||
some-other-character=['🤓'] | ||
emoji-in-double-quotes=["🔥"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters