summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 21:05:29 +0000
committerjamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 21:05:29 +0000
commitaea54a175c420bb4da44e675ea82e86b4958e64f (patch)
treef4aa3cf58ce33e996a15c5e4b95847263b8d68bc
parenteb854a384b409ad95c1a02e7ee7867ff15b96abe (diff)
downloadchromium_src-aea54a175c420bb4da44e675ea82e86b4958e64f.zip
chromium_src-aea54a175c420bb4da44e675ea82e86b4958e64f.tar.gz
chromium_src-aea54a175c420bb4da44e675ea82e86b4958e64f.tar.bz2
Use PlistBuddy instead of defaults.
BUG=125998 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/10384138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136981 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xremoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh4
1 files changed, 2 insertions, 2 deletions
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 4f607eb..664087b 100755
--- a/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh
+++ b/remoting/host/installer/mac/PrivilegedHelperTools/org.chromium.chromoting.me2me.sh
@@ -7,7 +7,7 @@
NAME=org.chromium.chromoting
CONFIG_DIR=/Library/PrivilegedHelperTools
HOST_EXE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/MacOS/remoting_me2me_host
-PLIST_BASE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/Info
+PLIST_FILE=$CONFIG_DIR/$NAME.me2me_host.app/Contents/Info.plist
ENABLED_FILE=$CONFIG_DIR/$NAME.me2me_enabled
CONFIG_FILE=$CONFIG_DIR/$NAME.json
@@ -84,7 +84,7 @@ elif [[ "$1" = "--save-config" ]]; then
echo $$
cat > "$CONFIG_FILE"
elif [[ "$1" = "--host-version" ]]; then
- defaults read "$PLIST_BASE" CFBundleVersion
+ PlistBuddy -c "Print CFBundleVersion" "$PLIST_FILE"
elif [[ "$1" = "--run-from-launchd" ]]; then
run_host
else