aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/exec_always.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-06 08:16:34 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-06 08:16:34 +1000
commit1daf69477e1a7c36a8a57ccc4d7fe6cf70736a88 (patch)
tree03fd40143d3c130f47d4182735453f4f30cfc972 /sway/commands/exec_always.c
parentMerge pull request #1881 from nbraud/usr-lib (diff)
downloadsway-1daf69477e1a7c36a8a57ccc4d7fe6cf70736a88.tar.gz
sway-1daf69477e1a7c36a8a57ccc4d7fe6cf70736a88.tar.zst
sway-1daf69477e1a7c36a8a57ccc4d7fe6cf70736a88.zip
Fix PATH setenv() in exec_always
Diffstat (limited to 'sway/commands/exec_always.c')
-rw-r--r--sway/commands/exec_always.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c
index b3078640..f631d7d8 100644
--- a/sway/commands/exec_always.c
+++ b/sway/commands/exec_always.c
@@ -82,7 +82,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
82 82
83 // Append /usr/lib/sway to PATH 83 // Append /usr/lib/sway to PATH
84 strcat(path, extra_path); 84 strcat(path, extra_path);
85 if (!setenv("PATH", path, 1)) { 85 if (setenv("PATH", path, 1) == -1) {
86 free(path); 86 free(path);
87 wlr_log(L_ERROR, "exec_always: Unable to set PATH"); 87 wlr_log(L_ERROR, "exec_always: Unable to set PATH");
88 exit(EXIT_FAILURE); 88 exit(EXIT_FAILURE);