33 lines
691 B
Bash
33 lines
691 B
Bash
#!/bin/sh
|
|
|
|
##
|
|
## Set MOZILLA_FIVE_HOME
|
|
##
|
|
MOZILLA_FIVE_HOME="FFDIR"
|
|
|
|
export MOZILLA_FIVE_HOME
|
|
|
|
##
|
|
## Select the propper plugin dir
|
|
## Wrapped plug-ins are located in /lib/mozilla/plugins-wrapped
|
|
##
|
|
if [ -x "/usr/bin/mozilla-plugin-config" ]
|
|
then
|
|
MOZ_PLUGIN_DIR="plugins-wrapped"
|
|
else
|
|
MOZ_PLUGIN_DIR="plugins"
|
|
fi
|
|
|
|
##
|
|
## Set LD_LIBRARY_PATH
|
|
##
|
|
if [ "$LD_LIBRARY_PATH" ]
|
|
then
|
|
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/$MOZ_PLUGIN_DIR:LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR:$LD_LIBRARY_PATH
|
|
else
|
|
LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME:$MOZILLA_FIVE_HOME/$MOZ_PLUGIN_DIR:LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR
|
|
fi
|
|
export LD_LIBRARY_PATH
|
|
|
|
$MOZILLA_FIVE_HOME/firefox-bin -remote "$1"
|