i3bar: only restart child when command changed (#2866)
this is a follow-up to
98f202dd1b
fixes #2689
This commit is contained in:
committed by
GitHub
parent
c70fa8078f
commit
fdb551f9d5
@ -185,6 +185,7 @@ static int config_string_cb(void *params_, const unsigned char *val, size_t _len
|
||||
|
||||
if (!strcmp(cur_key, "status_command")) {
|
||||
DLOG("command = %.*s\n", len, val);
|
||||
FREE(config.command);
|
||||
sasprintf(&config.command, "%.*s", len, val);
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user