35

Affects: 14.04 / 14.10 / 15.04 / 15.10 / 16.04 / 16.10

I started my dropbox deamon today, with the following result in the panel:

Icon

The icon with the warning/failed symbol should be my Dropbox icon. I cannot right-click or left-click it, so no interaction.

I am running Xubuntu 15.10 on 4.2.0-27-generic x64. I also tried to re-install Dropbox, reinstall nautilus-dropbox, recursively delete ./cache/sessions/ as well as set other themes and icon sets.

Apparently nothing helped and similar problems described here and on other boards are similar, not the same and do not work in my case.

Glorfindel
  • 971
  • 3
  • 13
  • 20
  • 1
    Started happening on 14.04 as well. – mreq Feb 12 '16 at 13:09
  • Weird. The thing that bothers me, is that it worked fine on my 15.04 until today. It just broke... – user1252280 Feb 12 '16 at 13:10
  • 2
    Although it is a bug, since it can be fixed http://askubuntu.com/questions/562259/dropbox-icon-in-the-wrong-place/562376#562376, please don't mark it as off-topic. – Jacob Vlijm Feb 14 '16 at 07:45
  • 2
    Yes, please dont mark it as off-topic, I am now on 15.10 and the problem still exists. Thanks @JacobVlijm for your link- while reading this, I found a link to a linux mint forum, suggesting to stop the dropbox service and start it with root privs (i.e. sudo). This solves the icon problem, however, the user / nautilus lacks privileges, e.g. to display the green markers for successful syncing etc.. So this whole thing, seems to be a privilege problem with Dropbox – user1252280 Feb 14 '16 at 16:28
  • Running Dropbox with sudo imo is a bad idea. Did ypu try the link? – Jacob Vlijm Feb 14 '16 at 16:29
  • Yes I tried it, but I have no autostart folder and also restarting dropbox didn't fix anything (not even temporarily). This is why I clicked on the (mint) link within your link, explaining the permission thing. And yes, I totally agree the sudo workaround is a bad idea -> I wouldnt do that either! – user1252280 Feb 14 '16 at 16:42
  • 1
    Seems to be a Dropbox version related Happens with Dropbox 3.14 on KDE4 and XFCE. The good news is that Dropbox works, and only the icon is missing. I have two separate user accounts on this PC, one displays the failure icon, and the another still displays the Dropbox icon. –  Feb 14 '16 at 00:17
  • 1
    Yes, the link @JacobVlijm postet, suggests the same thing- however, please see my comment above. This whole thing seems to be a permission problem with dropbox -.- – user1252280 Feb 14 '16 at 16:30
  • @user1252280 I had previously marked your question as off topic, but after your edit was posted yesterday, I read your question again and tried to undo it and failed, so I edited your question myself and tried to undo it again and failed again. This was a mistake on my part, but I will try to correct it. If your question gets closed I will try to fix it by reopening it. – karel Oct 06 '16 at 10:17
  • Good day. I shared my script to fix this problem. Run as regular user. https://raw.githubusercontent.com/cosmoscalibur/leos/master/patch/dropbox-icon-missing – cosmoscalibur Apr 18 '17 at 03:13

10 Answers10

51

A more recent workaround that works for more Linux operating systems than the DBUS_SESSION one:

dropbox stop && dbus-launch dropbox start

EDIT: To make this permanent see answer by @juankvillegas below.

  • 2
    Yes, I can confirm this. And imho, this suggestion is even better: With the old workaround I git a dbus error, when opening a file inside the dropbox tree with gvim (from nautilus). I will accept this answer, since it has less side-effects. – user1252280 Feb 29 '16 at 10:42
  • 1
    This was the only workaround of a few I tried that worked for 14.04 Xfce with Crouton. Thanks! – jbrock May 26 '16 at 20:37
  • Still works great in Ubuntu 18.04 – Terrance Dec 05 '18 at 03:39
31

The answer given by @Juan M. Gonzalez is the best one, but you have to run that command every time you restart your PC.

A permanent fix would be:

  • Run the proposed command once to make the Dropbox icon appear in your notification area: dropbox stop && dbus-launch dropbox start
  • Open Dropbox preferences (click on the Dropbox icon in the notification area).
  • Disable "Start Dropbox on system startup" and apply your changes.
  • Go to XFCE settings > Session and Startup > Application Autostart.
  • Search for an existing Dropbox item and confirm it is disabled.
  • Add a new item with this configuration (do not edit the existing Dropbox item because it is recreated in each reboot):
    • Name: Dropbox
    • Command: dbus-launch dropbox start -i
  • Be sure that the new application is enabled in the list.
  • This worked great! Before I saw this I just tried editing the existing startup item, but it reverted back after restart, also just adding a new item and deleting the old one didn't work. Only after doing your "Disable "Start Dropbox on system startup" " step it worked. So it is essential. Thx! – Ur Ya'ar Sep 28 '16 at 17:13
  • Doesn't work for me (the permanent one, that is). Xenial / Xubuntu – Wolfgang Noichl Oct 03 '16 at 12:24
  • @WolfgangNoichl, Are you getting an error message in the console when executing dropbox stop && dbus-launch dropbox start? – juankvillegas Oct 03 '16 at 16:09
  • 2
    @WolfgangNoichl I suppose dropbox was started first as part of saved session. To make the Application Autostart work even if you have dropbox as part of saved session, you have to stop dropbox first by dropbox stop. – jarno Oct 04 '16 at 11:17
  • @jarno that did the job, thx! – Wolfgang Noichl Oct 04 '16 at 12:08
  • @WolfgangNoichl, Please check out my answer, too. – jarno Oct 04 '16 at 12:29
  • What is the -i flag for? Edit: looks like it installs dropboxd if its not currently available on the system – jlb Oct 06 '16 at 16:54
  • @jlb I didn't know what is -i for... but when I checked the official Dropbox launcher, the one that we disabled, it had that flag there... so... – juankvillegas Oct 06 '16 at 18:45
6

This instruction only work for Xubuntu, UbuntuStudio 16.04 (Not working in 17.04)

In you terminal run

sudo gedit /usr/bin/dropbox

Create a new line after import os and add the following:

os.environ['DBUS_SESSION_BUS_ADDRESS'] = ""

Save and rebot

Here a Gif I made:

Gif tutorial

And, if someday Dropbox update and not working more, repeat this tutorial

Reference:

Dropbox icon is not working Xubuntu 14.04 LTS 64

This applies to UbuntuStudio 15.10, 16.04 and Xubuntu (both based on XFCE)

5

This worked for me (xubuntu 15.10):

DBUS_SESSION_BUS_ADDRESS="" dropbox start

That is shown here:

Dropbox icon is not working Xubuntu 14.04 LTS 64

  • 1
    Very nice, this finally worked! I added the important part of the line to ~/.dropbox-dist/dropboxd so nautilus starts dropbox the right way. Thanks a lot! – user1252280 Feb 19 '16 at 10:52
3

I think it's an issue related to the indicator plug-in. If you don't use it, I suggest you remove it from your panel. The Dropbox icon should then appear normally in the notification area.

3

I had the same problem on Linux Mint 17. The solution for me was

dropbox stop && DBUS_SESSION_BUS_ADDRESS="" dropbox start
muru
  • 197,895
  • 55
  • 485
  • 740
3

Here's what I did in Xubuntu 16.04

I remove the indicator applet.

The Dropbox icon appeared.

I added the indicator applet. Moved it to where it was before.

Done !

DropBox icon

To get Dropbox integration in Thunar:

sudo add-apt-repository ppa:xubuntu-dev/extras

sudo apt-get update

sudo apt-get install thunar-dropbox-plugin

Thunar integration

1LinuxGuy
  • 41
  • 3
  • That's what I did, too! Well, first used dropbox stop && dbus-launch dropbox start which worked but still left the indicator applet.. So I ended up removing the latter anyway, which left my lovely Dropbox icon there working perfectly. Yours is a simpler, useful answer though! -Xubu 16.04 – P Smith Jun 16 '16 at 19:08
2

I finally got it working reliably.

  1. Remove the indicator-plugin from the panel. The dropbox icon now appears properly in the Notification Area. The network connection appears there too. But the audio control is now gone.
  2. Add the xfce4-pulseaudio-plugin using synaptic. Then add it to the panel.
  3. Log out, then log back in. Everything should show up properly.
Syster
  • 31
  • How do you compare the pulseaudio plugin with the indicator-plugins Sound Menu? Anyway, Dropbox icon can be shown in Notification Area even if Indicator is in use. See my answer. – jarno Oct 04 '16 at 12:48
  • The plugin is only available for 16.04 and later. – jarno Oct 05 '16 at 06:17
  • I have two laptops, both with xubuntu 16.04. On one of them, Dropbox works fine; I have never fixed it with custom start scripts. Most odd ... this answer explained the difference between the two configurations and it is the most elegant solution. – Tim Richardson May 01 '17 at 13:57
  • Plugin available here: https://launchpad.net/xfce4-pulseaudio-plugin. See also this https://askubuntu.com/questions/1034047/where-to-get-libpulse-mainloop-glib-0-9-19 ; I needed libpulse-dev, libxfce4util-dev, libxfce4ui-2-dev, libxfce4panel-2.0-dev. Hopefully that saves someone some time! – dez93_2000 Jul 03 '18 at 17:55
  • Note: this duplicates the pulseaudio volume icon popup for me, i.e. when changing volume. Right click on the panel icon, properties, unclick 'show notifications'. Now it only comes up once. – dez93_2000 Jul 06 '18 at 14:35
2

Make sure that Notification Area is an item in Panel Preferences; the icon will be shown in Notification Area.

Run the following in terminal:

dropbox stop && dbus-launch dropbox start

Then right-click the Dropbox icon, and click "Preferences...". Disable "Start Dropbox on system startup".

If you use saved sessions, make sure dropbox is not an item in them: Start the session, run dropbox stop and thereafter save the session.

Create an init script for dropbox by running this once in terminal as regular:

echo 'description "Dropbox"
start on desktop-start
expect daemon
exec env DBUS_SESSION_BUS_ADDRESS= dropbox start -i' >"${XDG_CONFIG_HOME-$HOME/.config}/upstart/dropbox.conf"

Note: In 12.04 you have to store the file in "$HOME/.init", instead. In 14.04 the directory is deprecated. See Upstart documentation.

Note: env DBUS_SESSION_BUS_ADDRESS= could be replaced by dbus-launch in the above.

Now you can start dropbox by

start dropbox

Then icon should be visible.

The service will be started automatically after next login. The init script starts dropbox in such a way that it is invisible to the session manager and will not be saved in sessions thereafter.

I tested it in 14.04 (that uses Upstart) and 16.04 (that uses systemd). Updating dropbox should not break this fix like it does with some other solutions.

I got some of the ideas from this answer. There is some background information in that answer.

jarno
  • 5,600
  • For some reason this does not work correctly anymore in 14.04; the system tries to display the Indicator icon instead, but fails to do it properly. – jarno Jan 17 '18 at 13:38
  • This fixed problem for me in Ubuntu 19.04. After updating, none of my old apps could talk to panel anymore. Re-running the notification area app fixed the problem. – pauljohn32 May 03 '19 at 21:27
1

In Xubuntu 16.04, I found this to work:

  1. sudo mousepad /usr/bin/dropbox
  2. After import os add os.environ['DBUS_SESSION_BUS_ADDRESS'] = ""
  3. dropbox stop
  4. dropbox start
Videonauth
  • 33,355
  • 17
  • 105
  • 120
Syster
  • 31