3
# Script written by Fabien Tassin <fta@sofaraway.org> in September 2007
5
# If there's still no ~/mozilla/firefox-3.0 profile, try to find a previous
6
# firefox profile and initialize with that. We'll try to first use
7
# 'firefox-trunk' profile, then try 'grandparadiso', then # plain 'firefox'.
8
# If nothing is found, we'll go for a fresh run and let firefox create a
9
# default profile for us.
14
if [ ! -d $MOZDIR/$APPNAME ] ; then
16
if [ -d $MOZDIR/firefox-trunk ] ; then
18
elif [ -d $MOZDIR/granparadiso ] ; then
20
elif [ -�d $MOZDIR/firefox ] ; then
24
if [ "$FOUND" != "" ] ; then
25
echo "*NOTICE* No previous $APPNAME profile found, we'll initialize a profile using a copy of your existing '$FOUND' profile."
26
echo -n "Transfering..."
27
cp -a $MOZDIR/$FOUND $MOZDIR/$APPNAME
30
echo "*NOTICE* No previous firefox profile found, starting with a fresh one"
34
exec /usr/lib/$APPNAME/$APPNAME "$@"