Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSystemTrayIcon doesn't work on Fedora 32

QSystemTrayIcon doesn't work on Fedora 32

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 381 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dramcryx
    wrote on last edited by
    #1

    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?

    P 1 Reply Last reply
    0
    • D Dramcryx

      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?

      P Offline
      P Offline
      Paul Y. L.
      wrote on last edited by Paul Y. L.
      #2

      @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.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved