X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fstartupnotify.c;h=e13aa55c688a55f84f50a66d6ebaa9392c389a34;hb=58788c781713092c6aa3a4544f8a06cd499ec4fd;hp=e9bb8310a0433989bac5254a8bbc07073a3e944d;hpb=1b33ab6c0d9117a84325e1bc01489bde566cda64;p=chaz%2Fopenbox 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 +#ifdef HAVE_STDLIB_H +# include +#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); }