]> Dogcows Code - chaz/openbox/commitdiff
only unset the startup_desktop_id once, and dont free the string we pass to putenv
authorDana Jansens <danakj@orodu.net>
Sun, 20 Jan 2008 23:34:26 +0000 (18:34 -0500)
committerDana Jansens <danakj@orodu.net>
Sun, 20 Jan 2008 23:34:26 +0000 (18:34 -0500)
openbox/openbox.c
openbox/startupnotify.c

index 48f31f9140f5c2b3ab0749100f302e2ed5421fc9..0c74b255bae8fdef00a64f4b54c8bacf975b064c 100644 (file)
@@ -515,9 +515,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 */
-    gchar *s = g_strdup("DESKTOP_STARTUP_ID");
-    putenv(s);
-    g_free(s);
+    putenv(g_strdup("DESKTOP_STARTUP_ID"));
 }
 
 static void parse_args(gint *argc, gchar **argv)
index 8bc38da2c7d59a8712bbfcb81e92f02dbe787641..78a1e94afd63e03e0f6b5859a4d49ba4d5d96751 100644 (file)
@@ -58,15 +58,8 @@ 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 */
-    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,
                                         sn_event_func, NULL, NULL);
This page took 0.031564 seconds and 4 git commands to generate.