sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 72ce50737d2ac47fdf818e0bdada375ba1208d10
parent c96ac2ff2a61571dc34f3a68dbe13a9b9c5884de
Author: emersion <contact@emersion.fr>
Date:   Sat,  5 May 2018 23:24:02 +0100

Merge pull request #1926 from RyanDwyer/fix-setenv-path

Fix PATH setenv() in exec_always
Diffstat:
Msway/commands/exec_always.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) { // 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);