How to fix missing dropbox panel icon with a startup script?

8,052

Timing issue

I am pretty sure it is because of the timing. The command most likely runs before its target is "in the field".

Changing the command into:

/bin/bash -c "sleep 15 && dropbox stop && env DBUS_SESSION_BUS_ADDRESS="" dropbox start -i" 

...will probably do the job.

Share:
8,052

Related videos on Youtube

Woeitg
Author by

Woeitg

Who On Earth Is That Guy?

Updated on September 18, 2022

Comments

  • Woeitg
    Woeitg over 1 year

    I use Xubuntu 16.10 and I want to run following command (this is the code for fixing dropbox icon) every time Linux session starts:

    dropbox stop && env DBUS_SESSION_BUS_ADDRESS="" dropbox start -i
    

    How can I do it?

    I copied the code as a new command in session and start up -> Application autostart but it doesn't work.

    • Jacob Vlijm
      Jacob Vlijm almost 8 years
      Hi Woeitg, posted. Please mention if it works, will delete if not.
    • Woeitg
      Woeitg almost 8 years
      now it works. sorry I was very busy today. tnx
    • jarno
      jarno over 7 years
      Possible duplicate of Xubuntu Dropbox Icon Fail
  • Woeitg
    Woeitg almost 8 years
    Unfortunately it doesn't work. There is a question mark icon instead of dropbox icon without any pop up menu: i.imgur.com/UcU8y1y.png . If I run the command in terminal, then everything is fixed as expected
  • Jacob Vlijm
    Jacob Vlijm almost 8 years
    @Woeitg please try to increase the time to 45, if it works (I am pretty sure it should) , try to find the edge.
  • dez93_2000
    dez93_2000 over 6 years
    Jacob's code updated to new implementation: /bin/bash -c "sleep 15 && dropbox stop && dbus-launch dropbox start"
  • Arman Ortega
    Arman Ortega over 6 years
    I also having an issue in my xubuntu 16.04 lts ..so I run the above command /bin/bash -c "sleep 15 && dropbox stop && env DBUS_SESSION_BUS_ADDRESS="" dropbox start -i" and it finally works. thanks!