Reload config+theme on SIGHUP

This commit is contained in:
Johan Malm 2020-09-25 19:42:40 +01:00
parent 745915c0ba
commit 1721b339da
6 changed files with 80 additions and 26 deletions

View file

@ -122,8 +122,6 @@ char *config_dir(void)
char *theme_dir(const char *theme_name)
{
static char buf[4096] = { 0 };
if (buf[0] != '\0')
return buf;
struct ctx ctx = { .build_path_fn = build_theme_path,
.buf = buf,
.len = sizeof(buf),