Re: How to get the user plugin directory (UNIX)
Daniel Fournier <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpinstall |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
To install JS Console extension, I use an install.js file with custom
classes (XPI_Installer and XPI_FileHandler) giving all you need to
install files in Mozilla user's directories (for instance in Profile
dir). To install in the plugin dir, 'Plugin' is OK.
You can use my install.js file if you want, just replacing, at the end
of the file (main function), the descriptor properties with your own.
Daniel
Salute wrote:
> I have an xpi script to install a mozilla plugin. It uses getFolder to
> find the directory where it can install but there is no option to get the
> home plugins/components directory.
>
> I really need to get to ~/.mozilla/plugins & ~/.mozilla/components since
> most users wont have write permission in the main install of mozilla which
> is what is returned by getFolder("Plugins").
>
>
> Thanks
>
> Salute Giovanni