From facdf3ca44c170aec9466b7e309a209de0c7f643 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 19 Dec 2020 07:33:34 +0200 Subject: Opening unrecognized schemes in default browser This works if the OS supports the scheme as built-in or via some handler application. IssueID #103 IssueID #84 --- src/app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index ae21d078..12d4024d 100644 --- a/src/app.c +++ b/src/app.c @@ -1195,7 +1195,7 @@ iBool handleCommand_App(const char *cmd) { const iBool noProxy = argLabel_Command(cmd, "noproxy"); iUrl parts; init_Url(&parts, url); - if (equalCase_Rangecc(parts.scheme, "mailto") || + if (argLabel_Command(cmd, "default") || equalCase_Rangecc(parts.scheme, "mailto") || ((noProxy || isEmpty_String(&d->prefs.httpProxy)) && (equalCase_Rangecc(parts.scheme, "http") || equalCase_Rangecc(parts.scheme, "https")))) { @@ -1205,7 +1205,7 @@ iBool handleCommand_App(const char *cmd) { iDocumentWidget *doc = document_Command(cmd); const int newTab = argLabel_Command(cmd, "newtab"); if (newTab) { - doc = newTab_App(NULL, (newTab & 1) != 0); /* newtab:2 to open in background */ + doc = newTab_App(NULL, (newTab & 1) != 0); /* "newtab:2" to open in background */ } iHistory *history = history_DocumentWidget(doc); const iBool isHistory = argLabel_Command(cmd, "history") != 0; -- cgit v1.2.3