Skip to content

Instantly share code, notes, and snippets.

@mortenpi
Last active August 1, 2017 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mortenpi/248140138c81941d93a5c361fe2775e1 to your computer and use it in GitHub Desktop.
Save mortenpi/248140138c81941d93a5c361fe2775e1 to your computer and use it in GitHub Desktop.
Setup for second Dropbox folder

To set up:

  • Create a subdirectory in you $HOME, e.g. $HOME/.dropbox-<ACCOUNT>
  • Put dropbox-start into that directory and give it chmod u+x
  • Put dropbox-<ACCOUNT>.desktop into ~/.local/share/applications/
  • Symlink (or copy) the .desktop file to ~/.config/autostart

With this setup you can start it from the GUI and also it will autostart on login.

[Desktop Entry]
Name=Dropbox (<ACCOUNT>)
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
Exec=/home/mortenpi/.dropbox-<ACCOUNT>/dropbox-start
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export HOME=${DIR}
exec dropbox start -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment