Reputation: 359
Can anyone help me out, I need a cross platform way to detect if browsers are installed e.g. Is Firefox installed, Is Safari installed etc. I am using wxWidgets for my GUI libary if this helps.
I can check the registry on windows but am unsure on how find out browsers for Linux and Mac. Would prefer one clean cross platform way rather than several If(windows) then search registry
If (Mac) then do something else etc.
Thanks
Upvotes: 0
Views: 439
Reputation: 4258
What's wrong with http://docs.wxwidgets.org/2.6.3/wx_miscellany.html#wxlaunchdefaultbrowser?
And why not using several ways of detection? This functionality could then be implemented in wxWidgets itself. After all, wxWidgets does exactly this and just abstracts it away using function with platform specifics hidden behind.
Upvotes: 2