Line 0
Link Here
|
|
|
1 |
--- src/vte.c.orig 2019-09-28 12:38:17 UTC |
2 |
+++ src/vte.c |
3 |
@@ -393,9 +393,10 @@ static void create_vte(void) |
4 |
g_signal_connect_after(vte, "realize", G_CALLBACK(on_vte_realize), NULL); |
5 |
} |
6 |
|
7 |
- |
8 |
+static int vte_closing; |
9 |
void vte_close(void) |
10 |
{ |
11 |
+ vte_closing = 1; |
12 |
g_free(vf); |
13 |
/* free the vte widget before unloading vte module |
14 |
* this prevents a segfault on X close window if the message window is hidden */ |
15 |
@@ -485,6 +486,8 @@ static void vte_commit_cb(VteTerminal *vte, gchar *arg |
16 |
|
17 |
static void vte_start(GtkWidget *widget) |
18 |
{ |
19 |
+ if (0 < vte_closing) |
20 |
+ return; |
21 |
/* split the shell command line, so arguments will work too */ |
22 |
gchar **argv = g_strsplit(vc->shell, " ", -1); |
23 |
|