diff options
Diffstat (limited to 'packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile')
-rwxr-xr-x | packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile new file mode 100755 index 0000000..99f2a21 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile @@ -0,0 +1,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" |