winhooks doesn't work in Mozilla Firefox

Using the latest nightly Mozilla Firefox build my Launchy extension doesn't work anymore! Launchy uses the function getRegistryEntry to scan the Windows registry for supported applications.

In Mozilla Firefox 0.8 and earlier this piece of code used to work:

var winhooks = Components.classes["@mozilla.org/winhooks;1"]. getService(Components.interfaces.nsIWindowsRegistry);
var reg = winhooks.getRegistryEntry(bla bla bla....)

In Mozilla Firefox 0.8.0+ it doesn't work anymore. In Mozilla 1.x it works fine.

I was told it's because that winhooks has been replaced by @mozilla.org/browser/shell-service;1 but that doesn't provide the getRegistryEntry function.

It seems that Mozilla Firefox 0.8.0+ has got it's own nsWindowsHooks.cpp file where GetRegistryEntry is a function in. The IDL file for this says that getRegistryEntry interface nsIWindowsRegistry : nsISupports what ever that means.

In any case GetRegistryEntry doesn't seems to be available under Mozilla Firefox 0.8.0+. If you have any clue on how to fix this please let me know or submit your findings to this bug report.


March 16, 2004 07:37 PM | Posted in Mozilla

Ads:

Back Next

2 Comments

Heck, I'd be happy if Firefox would register itself as a default handler of HTML files so my windows folders wouldn't be full of the IE symbol icons. Firebird shows up in the internet control panel as an HTML editor, but Firefox does not.

Site icon Comment by EdgeWise at March 17, 2004 04:51 AM | Permalink

I opened bug:
http://bugzilla.mozilla.org/show_bug.cgi?id=237754
to reintroduce getRegistryEntry

I really hope someone can help me, since Launhcy will be dead on Mozilla Firefox if the function getRegistryEntry isn't there!

Site icon Comment by Henrik Gemal at March 17, 2004 09:08 AM | Permalink

Post a comment




Remember Me?




Please enter the security code you see here

.
You're here: Home - winhooks doesn't work in Mozilla Firefox
Get the Mozilla Firefox browser