summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@blame.services>2021-12-04 22:13:31 +0100
committerDave Davenport <qball@blame.services>2021-12-04 22:13:31 +0100
commit2614fe4425f9ed06749c1caec57ea6537ea696e3 (patch)
treea2c89f49251b01f11a0820a91535748aa2e7fe9f
parent8f1aa8481d32968b6755f69b27a55f2d3c4e027d (diff)
[Config] Change separator to '#'.
-rw-r--r--source/xrmoptions.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c
index 6dff291f..ebabb5bb 100644
--- a/source/xrmoptions.c
+++ b/source/xrmoptions.c
@@ -549,15 +549,14 @@ void config_parse_cmd_options(void) {
count++;
}
if (count > 2) {
- if (g_strcmp0(tokens[1], "theme") == 0) {
+ if (g_str_has_prefix(tokens[1], "theme")) {
g_strfreev(tokens);
- tokens = g_strsplit(stored_argv[in], "-", 0);
+ tokens = g_strsplit(stored_argv[in], "#", 0);
count = g_strv_length(tokens);
- if (count > 3) {
+ if (count > 2) {
GString *str = g_string_new("");
- config_parser_form_rasi_format(str, &(tokens[2]), count - 2,
+ config_parser_form_rasi_format(str, &(tokens[1]), count - 1,
stored_argv[in + 1], FALSE);
- g_debug("theme: \"%s\"\n", str->str);
if (rofi_theme_parse_string(str->str) == 1) {
/** Failed to parse, try again as string. */
g_strfreev(tokens);