all repos — openbox @ 8cdf412aed60bd4c943281b2a6e577ed68f5ba18

openbox fork - make it a bit more like ryudo

Change setenv and unsetenv to putenv for portability.

Solaris apparently does not have setenv and unsetenv.
Mikael Magnusson mikachu@comhem.se
commit

8cdf412aed60bd4c943281b2a6e577ed68f5ba18

parent

556eb7b7fb20b3b0db03b6d92259ad3bb16dccde

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M openbox/openbox.copenbox/openbox.c

@@ -511,7 +511,7 @@

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)
M openbox/startupnotify.copenbox/startupnotify.c

@@ -61,7 +61,7 @@ {

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 @@ sn_launch_wait_timeout, sn_launcher,

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); }