diff options
author | Andrew Lewman <andrew@torproject.org> | 2008-03-30 00:43:12 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2008-03-30 00:43:12 +0000 |
commit | 007a10886cbe9bd245c4c76fab7078af9da6df0f (patch) | |
tree | cdf741d9248e5b19ae08f4f07a614c1a5af23230 /contrib | |
parent | f58d16ed9e58071057b366ea94795a0cbbf6d708 (diff) | |
download | tor-007a10886cbe9bd245c4c76fab7078af9da6df0f.tar.gz tor-007a10886cbe9bd245c4c76fab7078af9da6df0f.zip |
Backport torbutton version and installation changes.
svn:r14236
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/osx/TorPostflight | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight index b11a2b8770..ca34c95065 100644 --- a/contrib/osx/TorPostflight +++ b/contrib/osx/TorPostflight @@ -123,16 +123,7 @@ fi if [ -f /Applications/Firefox.app/Contents/MacOS/firefox ]; then if [ -f $TARGET/torbutton-$TORBUTTON_VERSION.xpi ]; then - /Applications/Firefox.app/Contents/MacOS/firefox -install-global-extension $TARGET/torbutton-$TORBUTTON_VERSION.xpi -# The following is a kludge to get around the fact that the installer -# runs as root. This means the Torbutton extension will install with -# root permissions; thereby making uninstalling Torbutton from inside -# Firefox impossible. The user will be caught in an endless loop of -# uninstall -> automatic re-installation of Torbutton. The OSX -# installer doesn't tell you the owner of Firefox, therefore we have to -# parse it. - USR=`ls -alrt /Applications/Firefox.app/Contents/MacOS/extensions/ | tail -1 | awk '{print $3}'` - GRP=`ls -alrt /Applications/Firefox.app/Contents/MacOS/extensions/ | tail -1 | awk '{print $4}'` - chown -R $USR:$GRP /Applications/Firefox.app/Contents/MacOS/extensions/ +# Open firefox with a prompt to install the torbutton xpi + /Applications/Firefox.app/Contents/MacOS/firefox $TARGET/torbutton-$TORBUTTON_VERSION.xpi fi fi |