commit: ab4e50b651899fc2a01b4eabf003aab98e058bc3
parent 895f8249860e1eafabcce8230f0c65486867196b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 22 Dec 2020 07:28:38 +0100
inaban: unset DISPLAY only once
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inaban.c b/inaban.c
@@ -806,12 +806,12 @@ main(int argc, char *argv[])
/* Set the WAYLAND_DISPLAY environment variable to our socket and run the
* startup command if requested. */
+ unsetenv("DISPLAY");
setenv("WAYLAND_DISPLAY", socket, true);
for(int i = 0; i < startup_cmdc; i++)
{
if(fork() == 0)
{
- unsetenv("DISPLAY");
execl("/bin/sh", "/bin/sh", "-c", startup_cmdv[i], (void *)NULL);
}
}