aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-09-26 16:41:39 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-09-26 16:41:39 +0000
commit3dd5b1fe6046003bbf9cc36004a19b3aca993342 (patch)
tree99f6a77fb3f013b13e0c3dab3e6109987140f925
parentinput: scale coordinates in wl_pointer_enter() (diff)
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.
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
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;