I noticed recently that my dropbox was no longer running on startup (the icon no longer appeared in the tray at top right, and nothing was syncing.)
In Startup Applications, dropbox is selected, with command
dropbox start -i. Based on Dropbox doesn't autostart in 12.04 I changed the command to
sh -c ~/.dropbox-dist/dropboxd. This works: if I restart my machine, the dropbox daemon starts running, the usual icon appears up in the tray, and files sync correctly.
However, when I go look at Startup Applications (after the change and restart described above), the command has reverted to
dropbox start -i! That means dropbox will not work next time I restart. Why does it do that and how can I fix it?
I'm on Ubuntu 14.04 LTS, with dropbox version 3.6.7.
Edit, was too long as a comment:
@Jacob I haven't been able to get this to work. I'm having trouble with "In Startup Applications (Dash > Startup Applications) remove the Dropbox entry (but not the newly created start_dropbox.desktop)." The newly created start_dropbox.desktop does not appear in Startup Applications, but there's a Dropbox entry with the dropbox logo, whose command is
/bin/bash -c "sleep 10&&dropbox start -i" -- seems to be reading the newly created start_dropbox.desktop. The original dropbox.desktop no longer present in ~/.config/autostart. Dropox does not start on reboot: it does ask for my password, but it doesn't actually start running.
Edit, got this to work by following @Jakob's suggestion, with a twist:
$ ls .config/autostart/ start_dropbox.desktop start_dropbox.desktop~ $ cat .config/autostart/start_dropbox.desktop [Desktop Entry] Name=Dropbox GenericName=File Synchronizer Comment=Sync your files across computers and to the web Exec=sh -c ~/.dropbox-dist/dropboxd Terminal=false Type=Application Icon=dropbox Categories=Network;FileTransfer; StartupNotify=false X-GNOME-Autostart-enabled=true $
Exec=sh -c ~/.dropbox-dist/dropboxd line. This is similar to the setup I had when I asked the question, but now the Exec line doesn't get overwritten on reboot.