From 018593c824c03f9d0fadaad23730e5ba0138117d Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 28 Jun 2021 20:48:55 +0100 Subject: [PATCH] rcxml: do not try to use theme Clearlooks-3.4 If no theme is specified in rc.xml, just use built-in theme --- src/config/rcxml.c | 3 --- src/theme.c | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 6dc40955..e9efbe9f 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -250,9 +250,6 @@ post_processing(void) bind("A-F3", "Execute", "bemenu-run"); } - if (!rc.theme_name) { - rc.theme_name = strdup("Clearlooks-3.4"); - } if (!rc.font_name_activewindow) { rc.font_name_activewindow = strdup("sans"); } diff --git a/src/theme.c b/src/theme.c index eaf36cc0..1434938c 100644 --- a/src/theme.c +++ b/src/theme.c @@ -178,7 +178,10 @@ theme_read(struct theme *theme, const char *theme_name) stream = fopen(themerc, "r"); } 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); return; }