rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: paul1149 on June 02, 2011, 11:11:37 PM

Title: HFS uses wrong browser
Post by: paul1149 on June 02, 2011, 11:11:37 PM
Hi,

For some reason, when I click Open in browser, or even when I click on this forum link under Web pages, HFS opens my old default browser, Chrome, rather than the current, Opera.

The main URL is https. But the system opens https shortcuts in Opera.

I'm on Win7 x64, using the secure mashup of HFS, which I got from this forum.

Thanks,
p.
Title: Re: HFS uses wrong browser
Post by: Mars on June 03, 2011, 12:37:35 AM
hfs use the default browser to open his web page, you have to redefine it on your Operating Sytem
Title: Re: HFS uses wrong browser
Post by: paul1149 on June 03, 2011, 12:47:12 AM
That's just the problem. Opera is the system default for http and https.
Title: Re: HFS uses wrong browser
Post by: rejetto on June 06, 2011, 01:48:46 PM
what HFS does to determine the browser to launch is to read this registry key
CLASSES_ROOT\http\shell\open\command

i'm not sure this is the best method.
If you have a better one, feel free to suggest.
Title: Re: HFS uses wrong browser
Post by: paul1149 on June 06, 2011, 03:32:56 PM
Hi rejetto,

I think I've found the answer. It lies in the change MS made to the Default Program scheme from Vista on. Now the defaults are located in HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http|https, and use Progid's to drive the command (mine says "Opera Protocol". So while my HKCR says Chrome, Windows never checks it. I suppose that is why Opera doesn't bother to change it, but that makes for confusion.

Here's an informative article on the problem:

http://newoldthing.wordpress.com/2007/03/23/how-does-your-browsers-know-that-its-not-the-default-browser/#comment-10553
Title: Re: HFS uses wrong browser
Post by: rejetto on June 10, 2011, 10:32:01 AM
thank you very much, i will apply this solution in next release
Title: Re: HFS uses wrong browser
Post by: h13.Bishop on September 30, 2012, 01:31:00 PM
Is this option still working?
Maybe they made some changes in Win8. I have Chrome default browser, but HFS uses IE instead.
Title: Re: HFS uses wrong browser
Post by: MarkV on October 24, 2012, 03:42:44 AM
The user location hasn't changed much. There's just a new Hash entry we probably need to consider.

At the other location, in the shell\open\command subkey, there is a new DelegateExecute entry pointing to a CLSID. That CLSID leads to "C:\Program Files\Internet Explorer\ieproxy.dll". Could be the source of the problem here.

Additionally I noticed that Firefox 16 was the first Fx version that registered correctly as default. Directly after installation it asked me to set it to default, then Win8 chimed in and presented its own dialog to select.

Long story short: There were some changes (maybe because of that new immersive crap) the community needs to look into. But latest browser versions should register itselves correctly now.
Title: Re: HFS uses wrong browser
Post by: h13.Bishop on October 24, 2012, 09:44:58 AM
There is a lot of issues on Windows 8 with HFS. Default browser, shell integration problems and some other. I'm not using Win 8 anymore and don't recommend you. HFS on Windows 7 works good. =)