I'd like to open a URL in the default internet browser from my application. My application gets compiled for MS-Windows, Linux, Mac and Solaris.
One way to achieve that on Windows is using the shell command start
, on Linux using the xdg-open
, on Mac there is open
. As a bonus, all these commands can also open any file in their default applications.
However I can't find any similar reliable command (or API) on Solaris.
I've heard about sdtwebclient
but since it is not on my machine running Solaris 10 (SunOS 5.10), it seems not to be safe to assume that it is usually there.
Any suggestions how to launch the default browser in a (more or less) reliable way on any Solaris machine?