diff --git a/libxfce4ui/xfce-spawn.c b/libxfce4ui/xfce-spawn.c index b4946d3..d2021b5 100644 --- a/libxfce4ui/xfce-spawn.c +++ b/libxfce4ui/xfce-spawn.c @@ -359,16 +359,9 @@ xfce_spawn_on_screen_with_child_watch (GdkScreen *screen, cenvp = g_new0 (gchar *, n + 3); for (n_cenvp = n = 0; envp[n] != NULL; ++n) { - if (strncmp (envp[n], "DESKTOP_STARTUP_ID", 18) != 0 - && strncmp (envp[n], "DISPLAY", 7) != 0) cenvp[n_cenvp++] = g_strdup (envp[n]); } - /* add the real display name for the screen */ - display_name = gdk_screen_make_display_name (screen); - cenvp[n_cenvp++] = g_strconcat ("DISPLAY=", display_name, NULL); - g_free (display_name); - #ifdef HAVE_LIBSTARTUP_NOTIFICATION /* initialize the sn launcher context */ if (G_LIKELY (startup_notify))