summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/app/svmain.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 2264c8424ebf..325eef803b9a 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -57,6 +57,8 @@
#include <svsys.h>
#include <process.h>
#include <ole2.h>
+#else
+#include <stdlib.h>
#endif
#ifdef ANDROID
@@ -362,6 +364,12 @@ bool InitVCL()
DebugEventInjector::getCreate();
#endif
+#ifndef _WIN32
+ // Clear startup notification details for child processes
+ // See https://bugs.freedesktop.org/show_bug.cgi?id=11375 for discussion
+ unsetenv("DESKTOP_STARTUP_ID");
+#endif
+
return true;
}