How to fix tray icon display issue on Ubuntu 14.04

If you’re using ubuntu desktop 14.04, there is a known problem in the seafile linux client 5.1 and later: The tray icon of seafile client would appear on the top-left corner of the screen.

This is a bug that exists in Qt versions earlier than qt 5.5. And lots of other software are also affected by it. Ubuntu 16.04 is not affected by this bug because it ships with Qt 5.5 (while ubuntu 14.04 ships Qt 5.2).

Here we provide a workaround for this bug.

The Workaround

First install the opt-qt561-trusty ppa and Qt 5.6 packages. The packages are installed to /opt/ so your system won’t be affected.

sudo add-apt-repository ppa:beineri/opt-qt561-trusty
sudo apt-get update
sudo apt-get install qt56base qt56translations qt56webengine

Download the wrapper script, which tells seafile-applet to use the Qt 5.6 libs we installed just now.

wget -O seafile-applet-qt56
chmod +x seafile-applet-qt56
sudo mv seafile-applet-qt56 /usr/local/bin/

Then download the updated seafile client desktop file, which launchs seafile client through the wrapper scripts you downloaded just now:

wget -O seafile.desktop
sudo cp seafile.desktop /usr/share/applications/seafile.desktop

Now you can launch seafile-applet from the ubuntu dashboard (quit the client first if it’s running). The tray icon of seafile client should appear in the correct position.

Finally, tell apt not to override the seafile.desktop file when you upgrade seafile client in the future:

sudo dpkg-divert --add /usr/share/applications/seafile.desktop

4 thoughts on “How to fix tray icon display issue on Ubuntu 14.04

  1. At first this worked fine for me. But then, out of a sudden, the applet startet crashing when I wanted to login again to an account (chose logout and wanted to select the logged out account again).

    The following message appeared in applet.log:
    “Cannot mix incompatible Qt library (version 0x50201) with this library (version 0x50601)”

    After additionally installing qt56sensors everything seems to be fine again, although libQt5WeKit is still from vanilla Ubuntu packages. It seems like there is no qt56webkit package in the PPA.

    Yes, we are using Shibboleth here.

    Liked by 1 person

  2. Thanks for the solution.

    Please note, PPA: “ppa:beineri/opt-qt561-trusty” not exists now. So just replace the command
    sudo add-apt-repository ppa:beineri/opt-qt561-trusty
    sudo add-apt-repository ppa:beineri/opt-qt562-trusty


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s