From 002d4737eeeffcb8b74f21a57587a86d7ab409b5 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 16 Dec 2020 11:12:35 +0100 Subject: [PATCH] Use execvp() instead of execvpe() Nothing here changes environ directly, and we're not interested in passing a specific custom environment to kwin_wayland, so don't use the (Linux-only) execvpe() for passing environment. --- helpers/wayland_wrapper/kwin_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/wayland_wrapper/kwin_wrapper.c b/helpers/wayland_wrapper/kwin_wrapper.c index 9e2ae9bb97..3dc76934df 100644 --- a/helpers/wayland_wrapper/kwin_wrapper.c +++ b/helpers/wayland_wrapper/kwin_wrapper.c @@ -59,7 +59,7 @@ pid_t launch_kwin(struct wl_socket *socket, int argc, char **argv) args[pos++] = NULL; - execvpe("kwin_wayland", args, environ); + execvp("kwin_wayland", args); free(args); exit(127); /* if exec fails */ } else {