If you don’t give Dropbox your password, it pesters you on startup. You can avoid that by setting 0000
permissions on the Dropbox.app/Contents/Resources/DropboxHelperInstaller.tgz
file, but that only lasts until the next Dropbox update. To make it permanent, we install a launchd
job which will watch that file for changes and reset the permissions as we want them.
If you have Dropbox installed somewhere other than /Applications/Dropbox.app
, edit the plist accordingly.
mkdir -p "${HOME}/Library/LaunchAgents"
curl 'https://gist.githubusercontent.com/vitorgalvao/f0bac70751004e0d3d1ef6b88b51f6e9/raw/5c9bb853d85f9da99d7e4b89e18e0f6d8a5321c4/com.vitorgalvao.launchd.preventdropboxdialog.plist' --output "${HOME}/Library/LaunchAgents/com.vitorgalvao.launchd.preventdropboxdialog.plist"
launchctl bootstrap "gui/$(id -u "${USER}")" "${HOME}/Library/LaunchAgents/com.vitorgalvao.launchd.preventdropboxdialog.plist"
launchctl bootout "gui/$(id -u "${USER}")" "${HOME}/Library/LaunchAgents/com.vitorgalvao.launchd.preventdropboxdialog.plist"
rm "${HOME}/Library/LaunchAgents/com.vitorgalvao.launchd.preventdropboxdialog.plist"