36ac449
#!/bin/sh
36ac449
#
36ac449
# Startup script for the fedora.us Thunderbird RPM
36ac449
# (based on the Mozilla RPM launch script)
36ac449
#
36ac449
86603f8
##
86603f8
## Variables
86603f8
##
86603f8
MOZ_ARCH=$(uname -m)
86603f8
case $MOZ_ARCH in
86603f8
        x86_64 | ia64 | s390 )
86603f8
                MOZ_LIB_DIR="/usr/lib64"
86603f8
                SECONDARY_LIB_DIR="/usr/lib"
86603f8
                ;;
86603f8
        * )
86603f8
                MOZ_LIB_DIR="/usr/lib"
86603f8
                SECONDARY_LIB_DIR="/usr/lib64"
86603f8
                ;;
86603f8
esac
86603f8
86603f8
if [ ! -x $MOZ_LIB_DIR/thunderbird-TBIRD_VERSION/thunderbird ]; then
86603f8
    if [ ! -x $SECONDARY_LIB_DIR/thunderbird-TBIRD_VERSION/thunderbird ]; then
86603f8
        echo "Error: $MOZ_LIB_DIR/thunderbird-TBIRD_VERSION/thunderbird not found"
86603f8
        if [ -d $SECONDARY_LIB_DIR ]; then
86603f8
            echo "       $SECONDARY_LIB_DIR/thunderbird-TBIRD_VERSION/thunderbird not found"
86603f8
        fi
86603f8
        exit 1
86603f8
    fi
86603f8
    MOZ_LIB_DIR="$SECONDARY_LIB_DIR"
ff6676c
fi
ff6676c
86603f8
MOZ_DIST_BIN="$MOZ_LIB_DIR/thunderbird-TBIRD_VERSION"
86603f8
MOZ_PROGRAM="$MOZ_DIST_BIN/thunderbird"
36ac449
0d16653
##
e727439
## Set MOZ_ENABLE_PANGO is no longer used because Pango is enabled by default
e727439
## you may use MOZ_DISABLE_PANGO=1 to force disabling of pango
0d16653
##
e727439
#MOZ_DISABLE_PANGO=1
ff6676c
#export MOZ_DISABLE_PANGO
0d16653
8f2926c
##
8f2926c
## Disable the GNOME crash dialog, Moz has it's own
8f2926c
## 
8f2926c
GNOME_DISABLE_CRASH_DIALOG=1
8f2926c
export GNOME_DISABLE_CRASH_DIALOG
8f2926c
86603f8
exec $MOZ_PROGRAM "$@"