2 ## This is a little sanity providing app that when run in a loop it will:
3 ## 1) Setup the environment properly
4 ## 2) Change to the proper $HOME directory
5 ## 3) Install a single .xpi or Firefox extension
9 # Here's where Make puts us
11 # This is the bundle we want to tamper with
13 echo "BUNDLE is: $BUNDLE"
15 # This is the full path to the extension we want to install
16 EXTENSION
="$STARTDIR/$2";
18 # Here's a relative path to our custom Firefox
19 FIREFOX
="./App/Firefox/firefox";
20 # Here's what we think should properly install a plugin
21 #FIREFOX_ARGS="-profile default -install-global-extension ";
22 FIREFOX_ARGS
=" -install-global-extension ";
24 # Now we'll switch into the bundle we wish to tamper with
26 # Now if we were running the bundle, we'd have our CWD as HOME
28 echo "We're now in (HOME): $PWD"
29 export LDPATH
=$HOME/Lib
/
30 echo "Attemping to properly configure LDPATH..."
32 export LD_LIBRARY_PATH
=$HOME/Lib
/
33 echo "Attemping to properly configure LD_LIBRARY_PATH..."
35 # Here's where we actually tell firefox to install this extension
36 echo "Attempting to run: $FIREFOX $FIREFOX_ARGS $EXTENSION";
37 $FIREFOX $FIREFOX_ARGS $EXTENSION;
38 echo "Firefox said: $?";