diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-02 22:40:55 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-02 23:08:31 +0100 |
commit | 996e5c02ca6f24f54e671a321e5f48f16f59836d (patch) | |
tree | 29d752c36ee4e90e0a6906ac9444457fd5ac19f6 /src/Theme.cpp | |
parent | 46dc098cab659538b2f229636f49b84ac8af86a1 (diff) |
Allow using ~ and $HOME in config paths
Diffstat (limited to 'src/Theme.cpp')
-rw-r--r-- | src/Theme.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Theme.cpp b/src/Theme.cpp index 8320054..9f525d5 100644 --- a/src/Theme.cpp +++ b/src/Theme.cpp @@ -13,7 +13,7 @@ namespace QuickMedia { if(read_file_as_json(config_path, json_root) && json_root.isObject()) return true; - config_path = Path("/usr/share/quickmedia/themes/").join(theme_name).append(".json"); + config_path = Path("/usr/share/quickmedia/themes").join(theme_name).append(".json"); if(read_file_as_json(config_path, json_root) && json_root.isObject()) return true; @@ -63,8 +63,6 @@ namespace QuickMedia { fprintf(stderr, "Warning: theme variable \"%s\" is an invalid color value. Expected #RRGGBB or #RRGGBBAA, was: %s\n", field_name, color_str); return; } - - // TODO: Test on big endian systems (&new_color.r)[(i - 1)/2] = (c1 << 4) | c2; } color = new_color; |