mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
Merge pull request #1926 from RyanDwyer/fix-setenv-path
Fix PATH setenv() in exec_always
This commit is contained in:
commit
72ce50737d
|
@ -82,7 +82,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
|
|||
|
||||
// Append /usr/lib/sway to PATH
|
||||
strcat(path, extra_path);
|
||||
if (!setenv("PATH", path, 1)) {
|
||||
if (setenv("PATH", path, 1) == -1) {
|
||||
free(path);
|
||||
wlr_log(L_ERROR, "exec_always: Unable to set PATH");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Reference in a new issue