wok annotate sakura/stuff/login_shell.patch @ rev 24166
Up tazlito (533)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 28 16:32:02 2021 +0000 (2021-12-28) |
parents | |
children |
rev | line source |
---|---|
pascal@20659 | 1 --- a/src/sakura.c |
pascal@20659 | 2 +++ b/src/sakura.c |
pascal@20659 | 3 @@ -196,7 +196,7 @@ |
pascal@20659 | 4 gint scrollbar_key; |
pascal@20659 | 5 gint fullscreen_key; |
pascal@20659 | 6 GRegex *http_regexp; |
pascal@20659 | 7 - char *argv[2]; |
pascal@20659 | 8 + char *argv[3]; |
pascal@20659 | 9 } sakura; |
pascal@20659 | 10 |
pascal@20659 | 11 struct terminal { |
pascal@20659 | 12 @@ -1825,12 +1825,13 @@ |
pascal@20659 | 13 } |
pascal@20659 | 14 |
pascal@20659 | 15 /* Set argv for forked childs */ |
pascal@20659 | 16 + sakura.argv[0]=g_strdup(g_getenv("SHELL")); |
pascal@20659 | 17 if (option_login) { |
pascal@20659 | 18 - sakura.argv[0]=g_strdup_printf("-%s", g_getenv("SHELL")); |
pascal@20659 | 19 + sakura.argv[1]=g_strdup("-l"); |
pascal@20659 | 20 } else { |
pascal@20659 | 21 - sakura.argv[0]=g_strdup(g_getenv("SHELL")); |
pascal@20659 | 22 + sakura.argv[1]=NULL; |
pascal@20659 | 23 } |
pascal@20659 | 24 - sakura.argv[1]=NULL; |
pascal@20659 | 25 + sakura.argv[2]=NULL; |
pascal@20659 | 26 |
pascal@20659 | 27 if (option_title) { |
pascal@20659 | 28 gtk_window_set_title(GTK_WINDOW(sakura.main_window), option_title); |