summaryrefslogtreecommitdiff
path: root/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile
blob: 99f2a216fdca38a026de6a56b67a3efc00e37c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
HERE=`dirname "$0"`
persistent_profile="$HOME/.config/gwt-chrome"
tmp_profile=`mktemp -d`
cp -r "$HERE/../chrome-profile"/* "$tmp_profile"
chmod -R u+w "$tmp_profile"

# copy from persistent profile
test -e "$persistent_profile/Default/Bookmarks" && \
    cp "$persistent_profile/Default/Bookmarks" "$tmp_profile/Default/Bookmarks"

LD_LIBRARY_PATH="$HERE/../lib/chrome-support" \
	"$HERE/../chrome-linux/"/chrome \
        --auth-server-whitelist="*cern.ch" \
	--disable-setuid-sandbox --user-data-dir="$tmp_profile" $*
rm -r "$tmp_profile"