Cross Platform XULRunner Registry



14 years ago
3 years ago


(Reporter: bugs, Unassigned)


Firefox Tracking Flags

(Not tracked)


From one app, I need to be able to find out about other XRE apps.

My use case is as follows: user installs extension xpi from web. Extension
install.rdf shows target app as thunderbird's GUID, not firefox's. Currently
this throws an "incompatible" error. What I would like to do is look up tbird's
guid in a XULRunner registry of installed apps, e.g.


with keys under that, e.g.

--> Default Directory=C:\Documents and Settings\beng\Application

My install function can read the "Default Directory" value out and copy the XPI
into it, so that the next time tbird starts it will detect and install the item. 

I imagine there'd be use for other properties relating to the installed
applications too - name, version numbers, etc. that other applications can use
to find out info about installed XRE apps. On Windows this could be back ended
by the Windows Registry with keys under HKCU/HKLM depending on access
requirements (so non-XRE apps can interact with it easily), on MacOSX in .plists
under /Library and ~/Library (depending on access requirements)

Comment 1

14 years ago
Oh man, this is not simple. These extensions would still be installed per-user
(in the profile)? Is this supposed to be 1.8 fodder, or a 1.9 feature?

Comment 2

14 years ago
It's simple given Ben's EM rewrite.  Each application would automatically have a
per-user XPI drop directory (e.g., ~/.vendor/appname/extensions).  The extension
would be installed into the very same directory when the application is launched.

Comment 3

14 years ago
How do we map GUID -> .vendor/appname ?

Comment 4

14 years ago
Well, I see two possibilities:

1) The XULRunner app installer could setup the registry

2) and/or we could "heal" the application registry entry each time XULRunner is
invoked for a particular application

Comment 5

14 years ago
Since the 'normal' situation will be an XUL app running as a non-admin user, I
think the best option is to have the "app registry" stored in HKCU (some
appropriate per-user store for other OSes), and updated when each app is started.

A global store /could/ be useful if the admin(s) install XUL apps globally,
however, I don't feel it is nessessary (an app the user has never run is not
that likely to be needed, f.e.).

One caution for the Windows registry keys: if they default to somewhere in the
user's profile (likely), use REG_EXPAND_SZ. :)


13 years ago
Assignee: darin → nobody


6 years ago
Last Resolved: 6 years ago
Resolution: --- → WONTFIX


3 years ago
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.