aboutsummaryrefslogtreecommitdiffstats
path: root/src/epiphany.in
blob: 5efa1562e46f4e8b08feded209a614b8cd71f99e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

dist_bin=`dirname $0`

if test -n "$MOZILLA_FIVE_HOME"; then
    MOZILLA_HOME=$MOZILLA_FIVE_HOME
elif [ -f @MOZILLA_HOME@/chrome/comm.jar ]; then
    MOZILLA_HOME=@MOZILLA_HOME@
else
    echo "Cannot find mozilla installation directory. Please set MOZILLA_FIVE_HOME to your mozilla directory"
    exit
fi

if [ -z "$MOZ_PLUGIN_PATH" ]; then
    MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins:/usr/libexec/plugins/mozilla
    export MOZ_PLUGIN_PATH
fi

LD_LIBRARY_PATH=$MOZILLA_HOME:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

MOZILLA_FIVE_HOME=$MOZILLA_HOME
export MOZILLA_FIVE_HOME

exec "$dist_bin/epiphany-bin" "$@"