Installing plugins into $HOME/.mozilla/plugins

[email protected] (M. Fritschi)
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization http://groups.google.com/
Message-ID <[email protected]>
hi,

i would like to install a plugin in an XPI package into
the user's $HOME/.mozilla/plugins directory to avoid
the need for the root password for plugin installations.

however, Install.getFolder("Plugins") always returns the
systemwide plugin path (e.g. /usr/local/mozilla/plugins)
instead of the user's plugin path. as a workaround, i used
Install.getFolder("Current User") + "../../plugins", but
this will obviously fail if the user has relocated its mozilla
data directory.

i haven't found any reliable method to determine the user's
home directory from install.js. the only other method i could 
think of is including a shell script in the xpi, which will
evalute $HOME and install the plugin into $HOME/.mozilla/plugins.

i tested the XPI package using Mozilla 1.0.1,
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830
which seems to be a good choice to me as many red hat users have
this version installed.

regards,
matt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.