Fix an oversight in the previous commit

We don't want to unset DISPLAY etc, if none is specified in the
app launch context.
This commit is contained in:
Matthias Clasen 2009-06-11 12:41:16 -04:00
parent 6224d3d2ec
commit a402875de1

View File

@ -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