Cross Platform XULRunner Registry

RESOLVED WONTFIX

Status

Toolkit Graveyard
XULRunner
RESOLVED WONTFIX
13 years ago
2 years ago

People

(Reporter: Ben Goodger (use ben at mozilla dot org for email), Unassigned)

Tracking

Details

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.

SOFTWARE\\Mozilla\\XULRunner\\Applications\\{GUID}

with keys under that, e.g.

SOFTWARE\\Mozilla\\XULRunner\\Applications\\{GUID}\\Extensions
--> Default Directory=C:\Documents and Settings\beng\Application
Data\Mozilla\Thunderbird\Extensions\

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

13 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

13 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

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

Comment 4

13 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

13 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. :)

Updated

12 years ago
Assignee: darin → nobody

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
(Assignee)

Updated

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