Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
Prepend "exec " to default i3bar_command
Browse files Browse the repository at this point in the history
Avoids leaving around a useless shell process.
  • Loading branch information
phy1729 committed Jan 31, 2020
1 parent fc01ece commit a2cba79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -1008,7 +1008,7 @@ int main(int argc, char *argv[]) {
TAILQ_FOREACH(barconfig, &barconfigs, configs) {
char *command = NULL;
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->id, current_socketpath);
LOG("Starting bar process: %s\n", command);
Expand Down

0 comments on commit a2cba79

Please sign in to comment.