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::isSystemTrayAvailable returns false on RHEL 8 (X11 GNOME)
QtWS25 Last Chance

QSystemTrayIcon::isSystemTrayAvailable returns false on RHEL 8 (X11 GNOME)

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 591 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.
  • S Offline
    S Offline
    Sahil_Rangari
    wrote on last edited by Sahil_Rangari
    #1

    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-31762

    Have also performed the following:
    sudo yum install libcanberra-gtk2.x86_64
    sudo yum install libcanberra-gtk3.x86_64
    sudo yum install libcanberra-devel.x86_64

    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • S Sahil_Rangari

      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-31762

      Have also performed the following:
      sudo yum install libcanberra-gtk2.x86_64
      sudo yum install libcanberra-gtk3.x86_64
      sudo yum install libcanberra-devel.x86_64

      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        Sahil_Rangari
        wrote on last edited by
        #3

        Hi,

        Installing gnome-shell-extension-desktop-icons package resolved the issue.

        https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/considerations_in_adopting_rhel_8/desktop-and-graphics_considerations-in-adopting-rhel-8

        Thanks.

        1 Reply Last reply
        2
        • S Offline
          S Offline
          Sahil_Rangari
          wrote on last edited by
          #4

          Sahil_Rangari 2 days ago

          Hi,

          Installing gnome-shell-extension-top-icons package resolved the issue.

          Thanks.

          1 Reply Last reply
          0

          • Login

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