How to show an icon in system tray in RHEL 8

Latest response

I want to show an icon in the system tray. In RHEL 7.6, I used libappindicator-gtk3 to do so. I attached the example python code.

But in RHEL 8, I found it doesn't work even if I install libappindicator-gtk3. So how can I show a tray icon in RHEL 8? Thanks a lot.



I haven't tried EL8 but in EL7 I have successfully used pystray.

The documentation isn't great, but you can get it working with a bit of StackExchange and reading the GitHub issues for sample code.

Thank you very much. My redhat's version is Linux rhel8 4.18.0-80.el8.x86_64 #1 SMP Wed Mar 13 12:02:46 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux. I will try pystray later.

By the way, is libappindicator-gtk3 not supported in rhel8? Thanks a lot.

That package is to be in the official channel, so is supported:

# yum info libappindicator-gtk3

Name         : libappindicator-gtk3
Version      : 12.10.0
Release      : 19.el8
Arch         : x86_64
Size         : 43 k
Source       : libappindicator-12.10.0-19.el8.src.rpm
Repo         : rhel-8-for-x86_64-appstream-rpms

I have not used libappindicator before tho.

pystray is from PyPI so is not supported by Red Hat, it's just something I have gotten working before, for my own usage.