/ xfce

XFCE 'Tray Icons' not working (black with a red slashed zero)

Introduction

Since upgrading Xubuntu a while back (I think to 15.10) some of my tray icons have stopped functioning... One was always there, and when I launched HipChat I found that was the second. Turns out the first was Dropbox - the context menu never worked for that but did for Dropbox...go figure.

Broken Icons

The Solution

After doing a little Googling I stumbled across the following post:

http://askubuntu.com/questions/732967/dropbox-icon-is-not-working-xubuntu-14-04-lts-64

Dropbox

Following advice on the post I copied the autostart config:

cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop

And made the required edits (note the Exec line).

[Desktop Entry]
Name=Dropbox
GenericName=File Synchronizer
Comment=Sync your files across computers and to the web
#Exec=dropbox start -i
Exec=env DBUS_SESSION_BUS_ADDRESS="" dropbox start -i
Terminal=false
Type=Application
Icon=dropbox
Categories=Network;FileTransfer;
StartupNotify=false

HipChat

Since HipChat 4 came out the executable is hipchat4. As I'm still used to launching hipchat with the original hipchat command I created a script /usr/local/bin/hipchat to invoke the new HipChat:

DBUS_SESSION_BUS_ADDRESS="" /usr/local/bin/hipchat4

As with Dropbox this also works and now the tray icons look fine:

Interestingly, on my laptop Alt+F4 closes the HipChat window, but does not exit the app itself, whereas on my desktop it exits the app too - I've still not fathomed this one...

Update: 23 Jan 2018

Since updating Xubuntu to 17.10 Dropbox went back to the 'broken' icon.

HipChat is long gone because of the issue above.

It seems the solution is to replace

env DBUS_SESSION_BUS_ADDRESS="" dropbox start -i

with

dbus-launch dropbox start -i
comments powered by Disqus
XFCE 'Tray Icons' not working (black with a red slashed zero)
Share this