wok view sakura/stuff/login_shell.patch @ rev 20981
updated gnuchess (6.0.1 -> 6.2.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 06 15:46:13 2019 +0100 (2019-03-06) |
parents | |
children |
line source
1 --- a/src/sakura.c
2 +++ b/src/sakura.c
3 @@ -196,7 +196,7 @@
4 gint scrollbar_key;
5 gint fullscreen_key;
6 GRegex *http_regexp;
7 - char *argv[2];
8 + char *argv[3];
9 } sakura;
11 struct terminal {
12 @@ -1825,12 +1825,13 @@
13 }
15 /* Set argv for forked childs */
16 + sakura.argv[0]=g_strdup(g_getenv("SHELL"));
17 if (option_login) {
18 - sakura.argv[0]=g_strdup_printf("-%s", g_getenv("SHELL"));
19 + sakura.argv[1]=g_strdup("-l");
20 } else {
21 - sakura.argv[0]=g_strdup(g_getenv("SHELL"));
22 + sakura.argv[1]=NULL;
23 }
24 - sakura.argv[1]=NULL;
25 + sakura.argv[2]=NULL;
27 if (option_title) {
28 gtk_window_set_title(GTK_WINDOW(sakura.main_window), option_title);