diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2015-12-20 18:47:45 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2015-12-20 18:47:45 +0100 |
commit | 570c0a93fb24a393a2bf013a5aad5b6759713ce7 (patch) | |
tree | 430499b41b4defac779fa3f3967bf0fa7af9f418 /packages/gwt-chromium/resources/chrome-profile/bin | |
download | debian-packages-570c0a93fb24a393a2bf013a5aad5b6759713ce7.tar.gz debian-packages-570c0a93fb24a393a2bf013a5aad5b6759713ce7.zip |
start migrating from shell scripts
Diffstat (limited to 'packages/gwt-chromium/resources/chrome-profile/bin')
-rwxr-xr-x | packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent | 12 | ||||
-rwxr-xr-x | packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-volatile | 16 | ||||
-rw-r--r-- | packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png | bin | 0 -> 2961 bytes |
3 files changed, 28 insertions, 0 deletions
diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent new file mode 100755 index 0000000..c0b2ef1 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/gwt-chrome-persistent @@ -0,0 +1,12 @@ +#!/bin/sh +HERE=`dirname "$0"` +profile="$HOME/.config/gwt-chrome" +if ! [ -e "$profile" ]; then + mkdir -p "$profile" + cp -r "$HERE/../chrome-profile"/* "$profile" +fi +chmod -R u+w "$profile" +LD_LIBRARY_PATH="$HERE/../lib/chrome-support" \ + "$HERE"/../chrome-linux/chrome \ + --auth-server-whitelist="*cern.ch" \ + --disable-setuid-sandbox --user-data-dir="$profile" $* 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" diff --git a/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png b/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png Binary files differnew file mode 100644 index 0000000..7690049 --- /dev/null +++ b/packages/gwt-chromium/resources/chrome-profile/bin/product_logo_48.png |