mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Log exec failures
This can happen when the swaybar or its status command isn't found. Instead of silently doing nothing, log the error.
This commit is contained in:
parent
30c28ff8f7
commit
c2c15b5625
2 changed files with 4 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ struct status_line *status_line_init(char *cmd) {
|
|||
|
||||
char *const _cmd[] = { "sh", "-c", cmd, NULL, };
|
||||
execvp(_cmd[0], _cmd);
|
||||
|
||||
sway_log(SWAY_ERROR, "Failed to start status command");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue