If you store your Dropbox and Google Drive folders on an encrypted drive it happens that the apps start before the volume is mounted on the system startup. Then you have to quit the app and run it again. This script aims to solve this problem.
The script is design for and tested on Mac OS X Mavericks. It should work on Linux too. For Windows solution look here.
- Create an app from this script (
dropbox_autostart.sh
) using Automator as described here. Save it in any folder under any name, e.g. asdropbox_autostart.app
file under your Home folder. - Change value of the
volume
variable in the script to your encrypted volume path. - Turn off Dropbox and Google Drive autostart option (in Settings for each app).
- Open System Preferences - Users & Groups. Click on your username, then on "Login items". Click on the plus sign button (under the list) and choose the
dropbox_autostart.app
file, you've created in the Automator app earlier.