| OLD | NEW |
| (Empty) | |
| 1 #!/bin/sh |
| 2 |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # Perform some initial setup for the browser if necessary and then run |
| 8 # it in a loop. |
| 9 |
| 10 CHROME_DIR="/opt/google/chrome" |
| 11 CHROME="$CHROME_DIR/chrome" |
| 12 BOTTLE="$CHROME_DIR/bottle.sh" |
| 13 COOKIE_PIPE="/tmp/cookie_pipe" |
| 14 DISABLE_CHROME_RESTART="/tmp/disable_chrome_restart" |
| 15 SEND_METRICS="/etc/send_metrics" |
| 16 |
| 17 # xdg-open is used to open downloaded files. |
| 18 # It runs sensible-browser, which uses $BROWSER. |
| 19 export BROWSER=/opt/google/chrome/chrome |
| 20 |
| 21 # NOTE: Do not edit the following line. |
| 22 # Unofficial and official builds use different default profile dirs. |
| 23 # For official builds, debian/rules sets the next line to |
| 24 # "google-chrome" when the package is being built. |
| 25 PROFILE_DIR=chromium |
| 26 |
| 27 # TODO(cmasone): Chrome tracks "Consent To Send Stats" on a per user-data-dir |
| 28 # basis, which is not going to work for our needs. That needs to be addressed. |
| 29 |
| 30 while true; do |
| 31 "$CHROME" --enable-gview \ |
| 32 --enable-sync \ |
| 33 --main-menu-url="http://welcome-cros.appspot.com/menu" \ |
| 34 --no-first-run \ |
| 35 --login-manager \ |
| 36 --user-data-dir=/home/$USER \ |
| 37 --profile=user \ |
| 38 "--cookie-pipe=$COOKIE_PIPE" |
| 39 |
| 40 # Exit if auto-restart has been disabled. |
| 41 if test -f "$DISABLE_CHROME_RESTART"; then |
| 42 break |
| 43 fi |
| 44 done |
| OLD | NEW |