diff options
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 0f2f33c70..b0aeb20db 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -1079,12 +1079,17 @@ static void gui_init2(int argc, char** argv) if(!notalreadyrunning) { STRPTR sendcmd = NULL; + char newtab[4] = "\0"; + + if(nsoption_bool(tab_new_session) == true) { + strcpy(newtab, "TAB"); + } if(temp_homepage_url) { - sendcmd = ASPrintf("OPEN \"%s\" NEW",temp_homepage_url); + sendcmd = ASPrintf("OPEN \"%s\" NEW%s", temp_homepage_url, newtab); free(temp_homepage_url); } else { - sendcmd = ASPrintf("OPEN \"%s\" NEW",nsoption_charp(homepage_url)); + sendcmd = ASPrintf("OPEN \"%s\" NEW%s", nsoption_charp(homepage_url), newtab); } ami_arexx_self(sendcmd); |