How to fix broken dropbox *menu* in xubuntu 18.04?

On clean installation of Xubuntu 18.04.1 LTS I started with

sudo apt-get install thunar-dropbox-plugin

then rebooted, logged in and waited for proprietary DropBox installer to finish, then logged in to my DropBox account. Then got icon in place, but left and right clicks did not work.

To fix it we need to change dropbox start -i to dbus-launch dropbox start -i.

I recommend to make it with script:

rm ~/.config/autostart/dropbox.desktop
dropbox autostart y
sed -i "s/dropbox start -i/dbus-launch dropbox start -i/" ~/.config/autostart/dropbox.desktop

Then logout and login back and enjoy:

Dropbox on Xubuntu

Note: if this method does not work for you try to remove dropbox completely with

dropbox stop
rm -rf ~/.dropbox ~/.dropbox-dist
sudo apt-get purge thunar-dropbox-plugin
sudo apt-get autoremove

then reboot and start from the beginning.