wok-6.x view sakura/stuff/login_shell.patch @ rev 21273
updated libplist and libplist-dev (1.4.0 -> 2.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 12 17:10:00 2019 +0100 (2019-04-12) |
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);