aboutsummaryrefslogtreecommitdiffstats
path: root/src/epiphany.in
blob: 3aad0baaf60b2f74e9d71257e67aac7466138067 (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
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

dist_bin=`dirname $0`

MOZILLA_HOME=@MOZILLA_HOME@

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

# Migration
if [ ! -d $HOME/.gnome2/epiphany/mozilla/epiphany -a -d $HOME/.galeon/mozilla/galeon ]; then
    mkdir -p $HOME/.gnome2/epiphany/mozilla/epiphany && \
    cp $HOME/.galeon/mozilla/galeon/*.s \
    $HOME/.galeon/mozilla/galeon/*.w \
    $HOME/.galeon/mozilla/galeon/cookies.text \
    $HOME/.galeon/mozilla/galeon/cookperm.txt \
    $HOME/.galeon/mozilla/galeon/prefs.js \
    $HOME/.gnome2/epiphany/mozilla/epiphany/ \
    > /dev/null 2>&1 \
    || :
fi

if [ -n "$LD_LIBRARY_PATH" ]; then
  LD_LIBRARY_PATH=$MOZILLA_HOME:$LD_LIBRARY_PATH
else
  LD_LIBRARY_PATH=$MOZILLA_HOME
fi
export LD_LIBRARY_PATH

MOZILLA_FIVE_HOME=$MOZILLA_HOME
export MOZILLA_FIVE_HOME

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