Unsolved QSystemTrayIcon doesn't work on Fedora 32
-
I have Fedora 32 installed on my machine and none of sessions return true from QSystemTrayIcon::isSystemTrayAvailable(). Neither Wayland nor Xorg.
Simplest and obvious example:#include <QApplication> #include <QSystemTrayIcon> int main(int argc, char ** argv) { QApplication qapp(argc, argv); assert(QSystemTrayIcon::isSystemTrayAvailable()); return 0; }
But supportsMessages() returns true in both cases. So is it Wayland (or generally GNOME) problem or I can fix it somehow?
-
@Dramcryx I don't see the tray icon even when login with x11 gnome environment. So I believe that is Fedora GNOME issue, since it works on Ubuntu 20.
By installing and enabling "KStatusNotifierItem/AppIndicator Support" GNOME extension on Fedora 32, the tray icon come back for my app.