diff options
Diffstat (limited to 'openbox/startupnotify.c')
| -rw-r--r-- | openbox/startupnotify.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/startupnotify.c b/openbox/startupnotify.c index e9bb8310..e13aa55c 100644 --- a/openbox/startupnotify.c +++ b/openbox/startupnotify.c @@ -21,7 +21,9 @@ #include "gettext.h" #include "event.h" -#include <stdlib.h> +#ifdef HAVE_STDLIB_H +# include <stdlib.h> +#endif #ifndef USE_LIBSN @@ -264,7 +266,7 @@ void sn_setup_spawn_environment(const gchar *program, const gchar *name, g_direct_equal, (GDestroyNotify)sn_launcher_context_unref); - putenv(g_strdup_printf("DESKTOP_STARTUP_ID=%s", id)); + setenv("DESKTOP_STARTUP_ID", id, TRUE); g_free(desc); } |
