wok view sakura/stuff/login_shell.patch @ rev 22491
updated apr and apr-dev (1.4.6 -> 1.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 31 14:21:42 2019 +0100 (2019-12-31) |
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);