QSystemTrayIcon::isSystemTrayAvailable returns false on RHEL 8 (X11 GNOME)
-
Hi,
We are using Qt 5.5.1 for an app.
It works well on RHEL 7.x.However, on RHEL 8.0 it exits as we have the following:
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
LOG_CRITICAL("Couldn't detect any system tray on this system.");
return 1;
}We are using GNOME (3.28.2) X11 as the environment.
Can you please let know as to why this is occurring, and if there is a workaround?
Also, does this apply?
https://bugreports.qt.io/browse/QTBUG-31762Have also performed the following:
sudo yum install libcanberra-gtk2.x86_64
sudo yum install libcanberra-gtk3.x86_64
sudo yum install libcanberra-devel.x86_64Thanks.
-
Hi,
We are using Qt 5.5.1 for an app.
It works well on RHEL 7.x.However, on RHEL 8.0 it exits as we have the following:
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
LOG_CRITICAL("Couldn't detect any system tray on this system.");
return 1;
}We are using GNOME (3.28.2) X11 as the environment.
Can you please let know as to why this is occurring, and if there is a workaround?
Also, does this apply?
https://bugreports.qt.io/browse/QTBUG-31762Have also performed the following:
sudo yum install libcanberra-gtk2.x86_64
sudo yum install libcanberra-gtk3.x86_64
sudo yum install libcanberra-devel.x86_64Thanks.
@Sahil_Rangari said in QSystemTrayIcon::isSystemTrayAvailable returns false on RHEL 8 (X11 GNOME):
Qt 5.5.1
Can you try with a more recent version?
Also, is this the Qt installation provided by RHEL 8.0?
If not can you try with Qt provided by RHEL 8.0? -
Hi,
Installing gnome-shell-extension-desktop-icons package resolved the issue.
Thanks.
-
Sahil_Rangari 2 days ago
Hi,
Installing gnome-shell-extension-top-icons package resolved the issue.
Thanks.