wok-6.x view sakura/stuff/login_shell.patch @ rev 20687
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 29 09:55:27 2019 +0100 (2019-01-29) |
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);