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.
This commit is contained in:
Daniel Eklöf 2019-09-26 18:41:39 +02:00
parent f862f173f5
commit 3dd5b1fe60
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
main.c
View file

@ -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;