Shammer's Philosophy

My private adversaria

Dropbox auto launch configuration

If Dropbox installed by following command, Dropbox wouldn't be launched automatically.

cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -

Adding following code to .profile required after executing above command.

if [ -d "$HOME/.dropbox-dist" ] ; then
    DROPBOX_RUNNING=`pgrep dropbox`
    if [ -z "$DROPBOX_RUNNING" ] ; then
	nohup $HOME/.dropbox-dist/dropboxd &
    fi
fi