Dropbox icon in the wrong place

I'm using Ubuntu 14.04 LTS.

Yesterday when I logged in, I found out that the Wi-Fi indicator disappeared. However the main problem is that Dropbox indicator is located on the left, above the Dash icon.

Partial screen shot

I searched for solutions on the web, but didn't find anything. Does anyone have some suggestions?


Coincidentally, I just ran into the same issue. It seems to be a bug, because restarting Dropbox fixes it temporarily, but only until the next restart. To fix it permanently, we need to edit and rename the dropbox.desktop file in ~/.config/autostart/

How to fix it permanently:

  • rename the file ~/.config/autostart/dropbox.desktop into: start_dropbox.desktop

    [You need to rename it because Dropbox overwrites the file dropbox.desktop on every startup]

  • Open the (renamed) file with gedit (drag it over an open gedit window).
  • Replace the line, starting with Exec=, change it into:

    Exec=/bin/bash -c "sleep 10&&dropbox start -i"
    

    This delays the startup of Dropbox with 10 seconds after log-in, which does the trick.

  • in Dropbox preferences, untick "Start Dropbox on startup" (else we would have two .desktop files representing Dropbox in the autostart folder):

    enter image description here

  • In Startup Applications (Dash > Startup Applications) remove the Dropbox entry (but not the newly created start_dropbox.desktop).

    enter image description here

  • In the folder ~/.config/autostart, remove the original dropbox.desktop if it is still there.

Now on restart, it should be in the right place.

Explanation

The bug seems to be related to the timing of the Dropbox startup. The workaround above replaces the "real" Dropbox starter with one that delays the startup 10 seconds, until the desktop is ready.


I followed the directions in the accepted answer but it didn't help in my case (I'm also using Unity on Ubuntu 14.04 LTS). Interestingly, I also had somehow lost the Wifi indicator, and following a fix for that issue, found here:

No wi-fi icon/ option in Ubuntu 14.04

..also fixed the placement of the Dropbox icon.