From 61b0b049c05da051ea50166aa1c4966939162685 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Mon, 14 Sep 2020 13:18:45 +0300
Subject: [PATCH 1/1] Windows: Open default browser via "cmd.exe start"
This is not a super robust solution, but should work in most cases.
src/app.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/app.c b/src/app.c
index 36388062..5eceebec 100644
--- a/src/app.c
+++ b/src/app.c
@@ -992,7 +992,10 @@ void openInDefaultBrowser_App(const iString *url) {
#elif defined (iPlatformLinux)
iClob(newStringsCStr_StringList("/usr/bin/x-www-browser", cstr_String(url), NULL))
#elif defined (iPlatformMsys)
iClob(newStringsCStr_StringList("start", cstr_String(url), NULL))
iClob(newStringsCStr_StringList(
"c:\\Windows\\System32\\cmd.exe", "/q", "/c", "start", cstr_String(url), NULL))
/* TODO: Should consult environment variables to find the
right cmd.exe. Also, the prompt window is shown momentarily... */
#endif
);
start_Process(proc);
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).