Advertisement
capspire

OSX/Linux/UNIX : Launch Another Copy of Dropbox

Dec 20th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. #!/bin/sh
  2. # DESCRIPTION: RUN DROPBOX FOR MULTIPLE ACCOUNTS ON ONE COMPUTER
  3. # By default, when you launch DropBox, it only lets you run one copy
  4. # of the application. This script shows how I launch a second copy
  5. # of Dropbox that uses a different account. This allows me to run
  6. # one copy of Dropbox for my capspire account and one for my personal
  7. # account. I won't explain how to save this as a shell script here,
  8. # but if you need help, let me know. (Ossie)
  9. #
  10. # Obviously, adapt for your needs.
  11.  
  12. # Make a dropbox folder for the alternate account if not already done.
  13. mkdir ~/Documents/Dropbox-capspire
  14.  
  15. # Change to that directory and reassign your HOME variable
  16. cd ~/Documents/Dropbox-capspire
  17. HOME=$HOME/Documents/Dropbox-capspire
  18.  
  19. # Launch dropbox, sending it to the background and swallowing output
  20. # (Obviously, the script below assumes OSX, update for your OS)
  21. nohup /Applications/Dropbox.app/Contents/MacOS/Dropbox &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement