static void parse_env()
{
/* unset this so we don't pass it on unknowingly */
- unsetenv("DESKTOP_STARTUP_ID");
+ putenv("DESKTOP_STARTUP_ID");
}
static void parse_args(gint *argc, gchar **argv)
if (reconfig) return;
/* unset this so we don't pass it on unknowingly */
- unsetenv("DESKTOP_STARTUP_ID");
+ putenv("DESKTOP_STARTUP_ID");
sn_display = sn_display_new(ob_display, NULL, NULL);
sn_context = sn_monitor_context_new(sn_display, ob_screen,
g_direct_equal,
(GDestroyNotify)sn_launcher_context_unref);
- setenv("DESKTOP_STARTUP_ID", id, TRUE);
+ putenv(g_strdup_printf("DESKTOP_STARTUP_ID=%s", id));
g_free(desc);
}