Prepend "exec " to default i3bar_command

Avoids leaving around a useless shell process.
This commit is contained in:
Matthew Martin 2020-01-30 21:02:50 -06:00
parent fc01ece365
commit a2cba79f9c
1 changed files with 1 additions and 1 deletions

View File

@ -1008,7 +1008,7 @@ int main(int argc, char *argv[]) {
TAILQ_FOREACH(barconfig, &barconfigs, configs) { TAILQ_FOREACH(barconfig, &barconfigs, configs) {
char *command = NULL; char *command = NULL;
sasprintf(&command, "%s %s --bar_id=%s --socket=\"%s\"", sasprintf(&command, "%s %s --bar_id=%s --socket=\"%s\"",
barconfig->i3bar_command ? barconfig->i3bar_command : "i3bar", barconfig->i3bar_command ? barconfig->i3bar_command : "exec i3bar",
barconfig->verbose ? "-V" : "", barconfig->verbose ? "-V" : "",
barconfig->id, current_socketpath); barconfig->id, current_socketpath);
LOG("Starting bar process: %s\n", command); LOG("Starting bar process: %s\n", command);