revert parts of previous commit

Without this line a terminal can be unusable.
Causes color and linewrap problems in ie. fedora.
See comments in previous PR ate github
master-1.22
raveit65 2018-01-24 15:14:58 +01:00
parent d3f29749a5
commit 8e3de226d0
1 changed files with 2 additions and 0 deletions

View File

@ -1424,6 +1424,8 @@ get_child_environment (TerminalScreen *screen,
g_hash_table_remove (env_table, "LINES");
g_hash_table_remove (env_table, "MATE_DESKTOP_ICON");
g_hash_table_replace (env_table, g_strdup ("TERM"), g_strdup ("xterm")); /* FIXME configurable later? */
/* FIXME: moving the tab between windows, or the window between displays will make the next two invalid... */
g_hash_table_replace (env_table, g_strdup ("WINDOWID"), g_strdup_printf ("%ld", GDK_WINDOW_XID (gtk_widget_get_window (window))));
g_hash_table_replace (env_table, g_strdup ("DISPLAY"), g_strdup (gdk_display_get_name (display)));