summaryrefslogtreecommitdiffstats
path: root/files/portable-directories-flash-liveusb-rw
blob: dbdda927dfbd21ea914869090af7d5fcefbc329a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

function create_mozilla_profile() {
    USER_DIR=$1
    PORTABLE_DIR=$2
    [ -d $USER_DIR ] && return
    mkdir -p $USER_DIR
    ln -sf "$PORTABLE_DIR/Data/profile" $USER_DIR
    cat > "$USER_DIR/profiles.ini" <<EOF
[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=profile
EOF
}

PORTABLE_ROOT=/live/media/.apps
create_mozilla_profile "$HOME/.mozilla/firefox" "$PORTABLE_ROOT/FirefoxPortable"
create_mozilla_profile "$HOME/.thunderbird" "$PORTABLE_ROOT/ThunderbirdPortable"