80 lines
2.0 KiB
Plaintext
80 lines
2.0 KiB
Plaintext
|
#!/bin/sh
|
||
|
#
|
||
|
# gil
|
||
|
# Startup script for the openmamba Thunderbird RPM
|
||
|
# (based on the Mozilla & Fedora RPM launch script)
|
||
|
#
|
||
|
|
||
|
##
|
||
|
## Variables
|
||
|
##
|
||
|
|
||
|
MOZ_DIST_BIN="LIBDIR/thunderbird-MOZILLA_VERSION"
|
||
|
MOZ_PROGRAM="LIBDIR/thunderbird-MOZILLA_VERSION/thunderbird"
|
||
|
MOZ_EXTENSIONS_DIR="$MOZ_DIST_BIN/extensions"
|
||
|
|
||
|
MOZILLA_FIVE_HOME="LIBDIR/thunderbird-MOZILLA_VERSION"
|
||
|
|
||
|
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=LIBDIR/thunderbird-MOZILLA_VERSION:LIBDIR/thunderbird-MOZILLA_VERSION/plugins:$LD_LIBRARY_PATH
|
||
|
else
|
||
|
LD_LIBRARY_PATH=LIBDIR/thunderbird-MOZILLA_VERSION:LIBDIR/thunderbird-MOZILLA_VERSION/plugins
|
||
|
fi
|
||
|
|
||
|
export LD_LIBRARY_PATH
|
||
|
|
||
|
##
|
||
|
## Make sure that we set the plugin path for backwards compatibility
|
||
|
##
|
||
|
if [ "$MOZ_PLUGIN_PATH" ]
|
||
|
then
|
||
|
MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/thunderbird-MOZILLA_VERSION/plugins
|
||
|
else
|
||
|
MOZ_PLUGIN_PATH=LIBDIR/mozilla/$MOZ_PLUGIN_DIR:LIBDIR/thunderbird-MOZILLA_VERSION/plugins
|
||
|
fi
|
||
|
export MOZ_PLUGIN_PATH
|
||
|
|
||
|
SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"`
|
||
|
[ -f $MOZ_EXTENSIONS_DIR/langpack-${SHORTMOZLOCALE}@thunderbird.mozilla.org/chrome/$SHORTMOZLOCALE.jar ] && MOZARGS="-UILocale $SHORTMOZLOCALE"
|
||
|
|
||
|
MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
|
||
|
[ -f $MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@thunderbird.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
|
||
|
|
||
|
##
|
||
|
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
|
||
|
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
|
||
|
##
|
||
|
#MOZ_DISABLE_PANGO=1
|
||
|
#export MOZ_DISABLE_PANGO
|
||
|
|
||
|
##
|
||
|
## Set MOZ_APP_LAUNCHER for gnome-session
|
||
|
##
|
||
|
export MOZ_APP_LAUNCHER="/usr/bin/thunderbird"
|
||
|
|
||
|
##
|
||
|
## Disable the GNOME crash dialog, Moz has it's own
|
||
|
##
|
||
|
|
||
|
GNOME_DISABLE_CRASH_DIALOG=1
|
||
|
export GNOME_DISABLE_CRASH_DIALOG
|
||
|
|
||
|
exec $MOZ_PROGRAM $MOZARGS ${1+"$@"}
|