diff options
author | Connor E <38229097+c-edw@users.noreply.github.com> | 2019-01-16 10:18:46 +0000 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-16 13:02:26 +0100 |
commit | 70637b40fe98bda420e279e2e059fc93a9f538d6 (patch) | |
tree | 13f98429c8891436a7f6a2136a9627230378bd39 /swaynag | |
parent | de6f5b345380e80b4d59ebc569697683af064424 (diff) |
Fixes for small existing bugs.
Diffstat (limited to 'swaynag')
-rw-r--r-- | swaynag/swaynag.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c index ceb795a8..186e9011 100644 --- a/swaynag/swaynag.c +++ b/swaynag/swaynag.c @@ -31,8 +31,9 @@ static bool terminal_execute(char *terminal, char *command) { char *cmd = malloc(sizeof(char) * (strlen(terminal) + strlen(" -e ") + strlen(fname) + 1)); sprintf(cmd, "%s -e %s", terminal, fname); execl("/bin/sh", "/bin/sh", "-c", cmd, NULL); + wlr_log_errno(WLR_ERROR, "Failed to run command, execl() returned."); free(cmd); - return true; + return false; } static void swaynag_button_execute(struct swaynag *swaynag, |