Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/sh | 1 #!/bin/sh |
|
Sergey Ulanov
2014/03/24 19:11:04
rietveld shows me this file as Deleted. Is it real
weitao
2014/03/24 21:21:33
I don't intend to delete it. But how do I correct
| |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Version = @@VERSION@@ | 7 # Version = @@VERSION@@ |
| 8 | 8 |
| 9 NAME=org.chromium.chromoting | 9 NAME=org.chromium.chromoting |
| 10 HOST_BUNDLE_NAME=ChromeRemoteDesktopHost.bundle | |
| 11 PREFPANE_BUNDLE_NAME=ChromeRemoteDesktop.prefPane | |
| 10 CONFIG_DIR=/Library/PrivilegedHelperTools | 12 CONFIG_DIR=/Library/PrivilegedHelperTools |
| 11 HOST_EXE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/MacOS/remoting_me2me_host | |
| 12 PLIST_FILE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/Info.plist | |
| 13 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled | 13 ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled |
| 14 CONFIG_FILE=$CONFIG_DIR/$NAME.json | 14 CONFIG_FILE=$CONFIG_DIR/$NAME.json |
| 15 PREF_PANE_BUNDLE=/Library/PreferencePanes/$NAME.prefPane | 15 HOST_EXE=$CONFIG_DIR/$HOST_BUNDLE_NAME/Contents/MacOS/remoting_me2me_host |
| 16 PLIST_FILE=$CONFIG_DIR/$HOST_BUNDLE_NAME/Contents/Info.plist | |
| 17 PREF_PANE_BUNDLE=/Library/PreferencePanes/$PREFPANE_BUNDLE_NAME | |
| 16 | 18 |
| 17 # The exit code returned by 'wait' when a process is terminated by SIGTERM. | 19 # The exit code returned by 'wait' when a process is terminated by SIGTERM. |
| 18 SIGTERM_EXIT_CODE=143 | 20 SIGTERM_EXIT_CODE=143 |
| 19 | 21 |
| 20 # Range of exit codes returned by the host to indicate that a permanent error | 22 # Range of exit codes returned by the host to indicate that a permanent error |
| 21 # has occurred and that the host should not be restarted. Please, keep these | 23 # has occurred and that the host should not be restarted. Please, keep these |
| 22 # constants in sync with remoting/host/host_exit_codes.h. | 24 # constants in sync with remoting/host/host_exit_codes.h. |
| 23 MIN_PERMANENT_ERROR_EXIT_CODE=100 | 25 MIN_PERMANENT_ERROR_EXIT_CODE=100 |
| 24 MAX_PERMANENT_ERROR_EXIT_CODE=105 | 26 MAX_PERMANENT_ERROR_EXIT_CODE=105 |
| 25 | 27 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 # stdin until the pipe is broken. | 154 # stdin until the pipe is broken. |
| 153 cat 2>/dev/null || true | 155 cat 2>/dev/null || true |
| 154 open "$PREF_PANE_BUNDLE" | 156 open "$PREF_PANE_BUNDLE" |
| 155 elif [[ "$1" = "--run-from-launchd" ]]; then | 157 elif [[ "$1" = "--run-from-launchd" ]]; then |
| 156 echo Host started for user $USER at $"$(date)" | 158 echo Host started for user $USER at $"$(date)" |
| 157 run_host | 159 run_host |
| 158 else | 160 else |
| 159 echo $$ | 161 echo $$ |
| 160 exit 1 | 162 exit 1 |
| 161 fi | 163 fi |
| OLD | NEW |