From 80e4c62c47bdeec92f32787b614c7326fa6f9bbc Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 14 Sep 2020 13:18:45 +0300 Subject: 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); -- cgit v1.2.3