Change setenv and unsetenv to putenv for portability.
Solaris apparently does not have setenv and unsetenv.
This commit is contained in:
parent
556eb7b7fb
commit
8cdf412aed
2 changed files with 3 additions and 3 deletions
|
@ -511,7 +511,7 @@ static void remove_args(gint *argc, gchar **argv, gint index, gint num)
|
|||
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)
|
||||
|
|
|
@ -61,7 +61,7 @@ void sn_startup(gboolean reconfig)
|
|||
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,
|
||||
|
@ -259,7 +259,7 @@ void sn_setup_spawn_environment(gchar *program, gchar *name,
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue