#!/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" $* # delete temporary profile after exit rm -r "$tmp_profile"