I'm trying to figure out how to install firefox xpi extensions from a scripted environment and running into trouble. My understanding is that you can do this by running the following command:
Code:
firefox -install-global-extension "<path-to-extension>\extname.xpi"
Unfortunately, all this does is start firefox. Anybody have any idea why this doesn't work? Here's my current script:
Code:
TMPDIR=`mktemp -d`
cd $TMPDIR
# Grab flashblock
wget https://addons.mozilla.org/en-US/firefox/downloads/latest/433/addon-433-latest.xpi?src=addondetail
# Grab adblock plus
wget https://addons.mozilla.org/en-US/firefox/downloads/latest/1865/addon-1865-latest.xpi?src=addondetail
for FILE in $TMPDIR/*.xpi ; do
firefox -install-global-extension "$FILE"
done
I've tried executing these commands manually just to confirm, but it just doesn't work.
Bookmarks