Engine.openWebsite(String url) - return value?
-
So is there any return value from this command that I can check - I'm getting :
on a users machine...
-
@Lindon following the API
void ScriptingApi::Engine::openWebsite(String url) { URL u(url); if (u.isWellFormed()) { auto& tmp = u; auto f = [tmp]() { tmp.launchInDefaultBrowser(); }; new DelayedFunctionCaller(f, 300); } else { reportScriptError("not a valid URL"); } }
it reports an error only when the URL is wrongly formatted.
Since here it is the machine that responds with an error, it might be something like there's no default browser. But even in this case, wouldn't the computer ask which application to use? I don't know...
Might it be a security that prevents the app to open anything on the mac? like a missing hardened runtime or something similar in the jucer/xcode when building the app?
-
@ustk said in Engine.openWebsite(String url) - return value?:
@Lindon following the API
void ScriptingApi::Engine::openWebsite(String url) { URL u(url); if (u.isWellFormed()) { auto& tmp = u; auto f = [tmp]() { tmp.launchInDefaultBrowser(); }; new DelayedFunctionCaller(f, 300); } else { reportScriptError("not a valid URL"); } }
it reports an error only when the URL is wrongly formatted.
well Im not sure thats much help to me then...
Since here it is the machine that responds with an error, it might be something like there's no default browser. But even in this case, wouldn't the computer ask which application to use? I don't know...
Might it be a security that prevents the app to open anything on the mac? like a missing hardened runtime or something similar in the jucer/xcode when building the app?
Pretty sure I codesigned with --hardened run time enabled... so its not that.
-
-
-
-
@d-healey ok thanks - looks like it likely a security config. issue for the user machine....