Chromium Code Reviews| Index: remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh |
| diff --git a/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh b/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh |
| index 664087bcb5297c32b9d24fb5bf65736b743d4de4..7b5e3b16080ff21284185c07d9cdb25d58cfc508 100755 |
| --- a/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh |
| +++ b/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh |
| @@ -10,6 +10,7 @@ HOST_EXE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/MacOS/remoting_me2me_host |
| PLIST_FILE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/Info.plist |
| ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled |
| CONFIG_FILE=$CONFIG_DIR/$NAME.json |
| +PREF_PANE_BUNDLE=/Library/PreferencePanes/$NAME.prefPane |
| # The exit code returned by 'wait' when a process is terminated by SIGTERM. |
| SIGTERM_EXIT_CODE=143 |
| @@ -85,6 +86,11 @@ elif [[ "$1" = "--save-config" ]]; then |
| cat > "$CONFIG_FILE" |
| elif [[ "$1" = "--host-version" ]]; then |
| PlistBuddy -c "Print CFBundleVersion" "$PLIST_FILE" |
| +elif [[ "$1" = "--launch-prefpane" ]]; then |
|
Jamie
2012/05/23 01:17:17
Nit: relaunch-prefpane?
Lambros
2012/05/24 00:54:50
Done.
|
| + # Wait for the parent (System Preferences applet) to die, by reading from |
| + # stdin until the pipe is broken. |
| + cat |
|
Jamie
2012/05/23 01:17:17
Yuck :(
Also, we don't currently use "set -e" in
Lambros
2012/05/24 00:54:50
Done.
|
| + open "$PREF_PANE_BUNDLE" |
| elif [[ "$1" = "--run-from-launchd" ]]; then |
| run_host |
| else |