rcxml: do not try to use theme Clearlooks-3.4

If no theme is specified in rc.xml, just use built-in theme
This commit is contained in:
Johan Malm 2021-06-28 20:48:55 +01:00
parent be27bb30a3
commit 018593c824
2 changed files with 4 additions and 4 deletions

View file

@ -250,9 +250,6 @@ post_processing(void)
bind("A-F3", "Execute", "bemenu-run"); bind("A-F3", "Execute", "bemenu-run");
} }
if (!rc.theme_name) {
rc.theme_name = strdup("Clearlooks-3.4");
}
if (!rc.font_name_activewindow) { if (!rc.font_name_activewindow) {
rc.font_name_activewindow = strdup("sans"); rc.font_name_activewindow = strdup("sans");
} }

View file

@ -178,7 +178,10 @@ theme_read(struct theme *theme, const char *theme_name)
stream = fopen(themerc, "r"); stream = fopen(themerc, "r");
} }
if (!stream) { if (!stream) {
info("cannot find theme (%s), using built-in", theme_name); if (theme_name) {
info("cannot find theme (%s), using built-in",
theme_name);
}
theme_builtin(theme); theme_builtin(theme);
return; return;
} }