Alright, here is a patch and script file. One interesting thing, I can run konqueror fine but mozilla appears to have some issue starting up. I get these odd error messages on the console with mozilla:
Failed to create E:/gconfd-cmorgan: No such file or directory Failed to create E:/gconfd-cmorgan: No such file or directory
Is this due to wine setting the TEMP environment variable? I've tried overriding that in the winebrowser script but it doesn't seem to make any difference. Ideas on how to fix this?
One other issue, what to do when the user doesn't have a web browser installed? I can't imagine this is a likely case but in any event since the script will exist there won't be any kind of error returned by ShellExecute() when it is called on a url. Not something to worry about?
* tools/winebrowser, tools/wineinstall, tools/Makefile.in, winedefault.reg Chris Morgan cmorgan@alum.wpi.edu Add HKEY_LOCAL_MACHINE\software\classes\http\shell\open\command key and value. Winebrowser script. Makefile changes to install/remove script. Wineinstall should create a simlink from windows/winebrowser.exe to the location of winebrowser on the machine.
Chris
On Saturday 27 December 2003 09:50 pm, Chris Morgan wrote:
In trying to install the United Devices application the installer prompts me to go to a website to get the msi installer. Wine doesn't have a HKEY_LOCAL_MACHINE\software\classes\http\shell\open\command key in the registery. I was thinking about making a shell script something along the lines of:
if browserX exists browserX $1 else if browserY exists browserY $1 ...
I would imagine most people have mozilla installed on their machines and we can check for konqueror, opera and other browsers. I've created a simple 'winebrowser' script, placed it in /usr/local/bin manually thus far, set the value for the above key to 'winebrowser %1' and symlinked /wine/system/ winebrowser.exe to /usr/local/bin/winebrowser.
Sound reasonable? Comments? ;-)
Chris