This problem bugged me for a -long- time, but finally a fix that works for me with Xubuntu 16.04:
The normal menu launcher (which works fine) uses ~/.local/share/applications/dropbox.desktop
which contains the line:
Exec=dbus-launch dropbox start -i
The startup launcher (which has the bug) uses ~/.config/autostart/dropbox.desktop
which contains the line:
Exec=dropbox start -i
The solution:
Use the same command for session startup as the normal menu launcher.
Dead easy - but just one problem:
When the dropbox app runs, it overwrites ~/.config/autostart/dropbox.desktop
with the command that fails, which it copies from /usr/share/applications/dropbox.desktop
. So we need to fix this file rather than the one in ~/.config/autostart/dropbox.desktop
In a terminal window, run the command:
sudo mousepad /usr/share/applications/dropbox.desktop
(if you don't use Mousepad, substitute the command for your preferred text editor)
Enter your password when prompted
Replace the line:
Exec=dropbox start -i
with:
# Exec=dropbox start -i
Exec=dbus-launch dropbox start -i
Save the file and close Mousepad.
Ensure that Dropbox Preferences are set to start Dropbox on system startup.
Reboot to test.