From 3dd5b1fe6046003bbf9cc36004a19b3aca993342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 26 Sep 2019 18:41:39 +0200 Subject: [PATCH] main: unset DESKTOP_STARTUP_ID This is used in the desktop startup notification protocol. We don't support it (is it even used on Wayland?), but need to ensure programs launced from within foot doesn't inherit it. --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index ac46a4f9..b25799ec 100644 --- a/main.c +++ b/main.c @@ -407,6 +407,10 @@ main(int argc, char *const *argv) { int ret = EXIT_FAILURE; + /* Startup notifications; we don't support it, but must ensure we + * don't pass this on to programs launched by us */ + unsetenv("DESKTOP_STARTUP_ID"); + struct config conf = {NULL}; if (!config_load(&conf)) return ret;