diff options
author | Martin Stransky <stransky@fedoraproject.org> | 2007-08-06 10:33:33 +0000 |
---|---|---|
committer | Martin Stransky <stransky@fedoraproject.org> | 2007-08-06 10:33:33 +0000 |
commit | 15debc175777635ed4be157d7d7373efd43083d0 (patch) | |
tree | d5c8947610d5c611fe7e39526aae2f2609a5f344 /firefox.sh.in | |
parent | - Update to 2.0.0.6 (diff) | |
download | librewolf-fedora-ff-15debc175777635ed4be157d7d7373efd43083d0.tar.gz librewolf-fedora-ff-15debc175777635ed4be157d7d7373efd43083d0.tar.bz2 librewolf-fedora-ff-15debc175777635ed4be157d7d7373efd43083d0.zip |
unwrapped plugins moved to the old location
Diffstat (limited to 'firefox.sh.in')
-rw-r--r-- | firefox.sh.in | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/firefox.sh.in b/firefox.sh.in index 4ce0537..690fd03 100644 --- a/firefox.sh.in +++ b/firefox.sh.in @@ -71,19 +71,28 @@ MOZILLA_FIVE_HOME="$MOZ_DIST_BIN" export MOZILLA_FIVE_HOME +## +## Select the propper plugin dir +## Wrapped plug-ins are located in /lib/mozilla/plugins-wrapped +## +if [ -x "$MOZ_LIB_DIR/nspluginwrapper/npviewer" ] +then + MOZ_PLUGIN_DIR="plugins-wrapped" +else + MOZ_PLUGIN_DIR="plugins" +fi ## ## Make sure that we set the plugin path ## if [ "$MOZ_PLUGIN_PATH" ] then - MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$MOZ_LIB_DIR/mozilla/plugins-wrapped:$MOZ_DIST_BIN/plugins-wrapped + MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$MOZ_LIB_DIR/mozilla/$MOZ_PLUGIN_DIR:$MOZ_DIST_BIN/$MOZ_PLUGIN_DIR else - MOZ_PLUGIN_PATH=$MOZ_LIB_DIR/mozilla/plugins-wrapped:$MOZ_DIST_BIN/plugins-wrapped + MOZ_PLUGIN_PATH=$MOZ_LIB_DIR/mozilla/$MOZ_PLUGIN_DIR:$MOZ_DIST_BIN/$MOZ_PLUGIN_DIR fi export MOZ_PLUGIN_PATH - ## ## Set FONTCONFIG_PATH for Xft/fontconfig ## @@ -135,8 +144,13 @@ function open_compose() { # OK, here's where all the real work gets done -# configure plug-ins -/usr/bin/firefox-plugin-config +## +## If plugins are wrapped, check them +## +if [ -x "$MOZ_LIB_DIR/nspluginwrapper/npviewer" ] +then + /usr/bin/firefox-plugin-config +fi # check to see if there's an already running instance or not ALREADY_RUNNING=`check_running` |