Fix Dropbox Indicator icon on XFCE

When you install dropbox on Linux Mint Xfce or Xubuntu, the indicator icon crashes. After install the application , a browser windows asks you to login but the process is broken . There are some steps to fix it :

  • rename the Dropbox autostart file, located in ~/.config/autostart/, and edit the file, changing the “Exec” line to “Exec=dbus-launch dropbox start -i”;
  • copy the Dropbox desktop file, located under /usr/share/applications/, to ~/.local/share/applications/, so it’s not overwritten when updating the package, and change the “Exec” line to “Exec=dbus-launch dropbox start -i”
  • disable the built-in Dropbox autostart (because it automatically creates an autostart file) using the “dropbox autostart n” command.

You may run the following script too, it will be fixed automatically:

cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop
sed -i 's/^Exec=.*/Exec=dbus-launch dropbox start -i/' ~/.config/autostart/start_dropbox.desktop
dropbox autostart n
mkdir -p ~/.local/share/applications/
cp /usr/share/applications/dropbox.desktop ~/.local/share/applications/
sed -i 's/^Exec=.*/Exec=dbus-launch dropbox start -i/' ~/.local/share/applications/dropbox.desktop

If dropbox was running, close it and run it again . The indicator icon now will be fixed.