I'm trying to figure out how to open an html file or URL in an external (host-based) browser. From what I understand the winebrowser should do this, however I haven't been able to figure out how to configure it - have tried adding entries to the winebrowser registry keys as suggested. Perhaps the problem is that I'm running on Mac OS X... Anyone with experience or hints here? Cheers!
ryan woodsmall
2010-Apr-29 04:52 UTC
[Wine] How to open web page in host browser on Mac OS X
> Perhaps the problem is that I'm running on Mac OS X... > > Anyone with experience or hints here?What are you using for your registry entries? On OS X the "open" command may come in handy. The following commands will open a site in your default browser, Safari and Firefox, respectively: open http://example.com open -a Safari http://example.com open -a Firefox http://example.com On OS X the full path to an app's executable is a bit odd, and you may need to do further trickery to the passed URL. For Safari, the executable is in: /Applications/Safari.app/Contents/MacOS/Safari Using the open command is probably the best bet on a Mac, but the executable may be helpful. You could also wrap browser startup in a shell script, throw that in your path and it would probably work as expected.
Thanks ryan. That almost worked :) But then I found that I had to also fix this: http://bugs.winehq.org/show_bug.cgi?id=13891#c10 so that the urls would open from within my app. Was getting this error err:winebrowser:get_url_from_dde Unable to retrieve URL from string L"\"" which turns out to be well known... Thanks! Works now!