Overview
OpenFin uses web standard behavior when processing Anchor tags. The OpenFin API provides a launchExternalProcess method which can be used to target a specific browser executable and pass in the URL in the arguments parameter.
Prerequisites
- The desired browser must be installed on the local system
- The Path of the desired browsers executable but be configured in the local system path
- The desired browser must accept a url as a command line argument
Example
Call the OpenFin API method 'launchExternalProcess' with the browsers exe file name in the `path` parameter and the url in the `arguments` parameter:
fin.System.launchExternalProcess({
path: "iexplore",
arguments: "http://openfin.co",
listener: function (result) {
console.log('the exit code', result.exitCode);
}
}).then(
processIdentity => console.log(processIdentity
)).catch(
err => console.log(err)
);
Reference:
System.launchExternalProcess(): http://cdn.openfin.co/docs/javascript/stable/tutorial-System.launchExternalProcess.ht
Comments
0 comments
Please sign in to leave a comment.