mozilla

Revision 190569 of Components

  • Revision slug: XULRunner/Components
  • Revision title: Components
  • Revision id: 190569
  • Created:
  • Creator: BenjaminSmedberg
  • Is current revision? No
  • Comment
Tags: 

Revision Content

Adding components to XULRunner is simple once you understand how XULRunner registers and saves the components.

New Components

After a new component has been written it must be placed in the app/components directory (not app/xulrunner/components). Once it's in place all you have to do is run the stub to launch the application. XULRunner will automatically register any new components and log it in the current user's profile directory under compreg.dat and xpti.dat.

Profiles

For Linux:

TODO

For Windows:

%AppData%\Vendor\Name\Profiles\xxxxxxxx.default\

Where Vendor is the vendor line, and Name is the Name line in the application.ini file. xxxxxxxx is the random hash in your Profiles directory for the active profile.

Re-Registering Components

Most of the problems you'll have creating a component, at least that I've had, is in the re-registering of components. Thanks to bsmedberg in the #xulrunner IRC channel, I figured out that all you have to do is either delete the compreg.dat and xpti.dat files in the profile directory or simply change the BuildID in your application.ini file.

Revision Source

<p>Adding components to <a href="en/XULRunner">XULRunner</a> is simple once you understand how XULRunner registers and saves the components.
</p>
<h3 name="New_Components"> New Components </h3>
<p>After a new component has been written it must be placed in the <i>app/components</i> directory (not <i>app/xulrunner/components</i>).  Once it's in place all you have to do is run the stub to launch the application.  XULRunner will automatically register any new components and log it in the current user's profile directory under <i>compreg.dat</i> and <i>xpti.dat</i>.
</p>
<h3 name="Profiles"> Profiles </h3>
<p>For Linux:
</p>
<dl><dd><pre></pre></dd><dd>TODO
</dd></dl>

<p>For Windows:
</p>
<dl><dd><pre></pre></dd><dd>%AppData%\Vendor\Name\Profiles\xxxxxxxx.default\
</dd></dl>

<p>Where <i>Vendor</i> is the vendor line, and <i>Name</i> is the Name line in the application.ini file.  <i>xxxxxxxx</i> is the random hash in your Profiles directory for the active profile.
</p>
<h3 name="Re-Registering_Components"> Re-Registering Components </h3>
<p>Most of the problems you'll have creating a component, at least that I've had, is in the re-registering of components.  Thanks to <i>bsmedberg</i> in the #xulrunner IRC channel, I figured out that all you have to do is either delete the <i>compreg.dat</i> and <i>xpti.dat</i> files in the profile directory or simply change the BuildID in your application.ini file.
</p>
Revert to this revision