diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:43 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-20 01:36:43 -0500 |
| commit | 98dda05c4ae1372391a26fca4c5a8b0551bbb4f9 (patch) | |
| tree | a7e9d6d7bb0366a2e817e30d3ef3b1336dfa64d2 | |
| parent | 3ae58f457bcdfa90b26dad4c9d192f045874ddae (diff) | |
| parent | 2c6240fd2f3e50fca76bb3f4df172eb745982b79 (diff) | |
Merge branch 'backport'
| -rw-r--r-- | openbox/startupnotify.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/startupnotify.c b/openbox/startupnotify.c index 4c929e7e..66bce264 100644 --- a/openbox/startupnotify.c +++ b/openbox/startupnotify.c @@ -58,10 +58,14 @@ static void sn_event_func(SnMonitorEvent *event, gpointer data); void sn_startup(gboolean reconfig) { + gchar *s; + if (reconfig) return; /* unset this so we don't pass it on unknowingly */ - putenv("DESKTOP_STARTUP_ID"); + s = g_strdup("DESKTOP_STARTUP_ID"); + putenv(s); + g_free(s); sn_display = sn_display_new(ob_display, NULL, NULL); sn_context = sn_monitor_context_new(sn_display, ob_screen, |
