[glib/glib-2-20] Fix an oversight in the previous commit



commit 6d8d9348230dd23214120ae0d43d559e7a805b75
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jun 11 12:41:16 2009 -0400

    Fix an oversight in the previous commit
    
    We don't want to unset DISPLAY etc, if none is specified in the
    app launch context.

 gio/gdesktopappinfo.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index e2f4d7f..f0a0bbc 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -854,13 +854,9 @@ child_setup (gpointer user_data)
 
   if (data->display)
     g_setenv ("DISPLAY", data->display, TRUE);
-  else
-    g_unsetenv ("DISPLAY");
 
   if (data->sn_id)
     g_setenv ("DESKTOP_STARTUP_ID", data->sn_id, TRUE);
-  else
-    g_unsetenv ("DESKTOP_STARTUP_ID");
 }
 
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]