Hello,
I like the idea. Under LindowsOS, I hacked up the shlexec.c so that if no browsers are installed under wine, it tries to run mozilla (for linux). This is because the xten sipphone software attempts to open web pages in a few circumstances, and we want that to work.
Ideally, we want the xten client to run under wine without any special LindowsOS patches, because it will be much easier for us to keep the version of wine in the CNR warehouse up-to-date if we can just use the default debian package. My patch to shlexec.c is the only patch that is likely to be rejected (it's totally the wrong way to do things, but I only had an hour to make something work).
As for your specific implementation, it sounds resonable to me. The behaviour I would expect is that mozilla for linux would be launched if no browsers are installed under wine. But if you install a browser under wine, then it would automatically be the default.
On the other hand, I might want to install ie under wine but still use linux for mozilla by default. So maybe there could be a config file option or something so that you can say 'prefer linux browser'. I realize I could edit the registry and change the setting back to mozilla, but:
(a) it's way to geeky for most people
(b) I would have to change the registry everytime ie reclaims control.
Jeremy Shaw.
At Sat, 27 Dec 2003 21:56:33 -0500, Chris Morgan wrote:
Bleh. I meant that I symlinked /c/windows/system/winebrowser.exe to /usr/ local/bin/winebrowser.
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