setenv and unsetenv dont exist in Solaris 9. (Fixes bug #4663)
[mikachu/openbox.git] / openbox / startupnotify.c
index 16654cf..e249002 100644 (file)
@@ -263,7 +263,7 @@ void sn_setup_spawn_environment(const gchar *program, const gchar *name,
                        20 * 1000, sn_launch_wait_timeout, sn_launcher,
                        (GDestroyNotify)sn_launcher_context_unref);
 
-    setenv("DESKTOP_STARTUP_ID", id, TRUE);
+    g_setenv("DESKTOP_STARTUP_ID", id, TRUE);
 
     g_free(desc);
 }