From a402875de1d8956c90a940f8309733040cda5afb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 11 Jun 2009 12:41:16 -0400 Subject: [PATCH] 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 file changed, 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 -- 2.7.4