1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[Config] Change separator to '#'.

This commit is contained in:
Dave Davenport 2021-12-04 22:13:31 +01:00
parent 8f1aa8481d
commit 2614fe4425

View file

@ -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);