Results 1 to 2 of 2

Thread: Ubuntu 24.04: QSystemTrayIcon disappears after logout/login

  1. #1
    Join Date
    Aug 2019

    Ubuntu 24.04: QSystemTrayIcon disappears after logout/login

    Running a Qt UI application on Ubuntu 24.04. Upon initial install the system tray icon is visible. However, after relogin or reboot the system tray icon disappears.

    The Qt application uses QSystemTrayIcon:
    QSystemTrayIcon *trayIcon = new QSystemTrayIcon(this);
    QIcon icon(trayImage);
    On previous Ubuntu versions, this was fixed by installing the Gnome Shell Extension gnome-shell-extension-appindicator. However, on 24.04 this did not seem to make a difference.

    Few questions:

    • I know the windowing system changed to Wayland for 24.04 whereas it was X11 previously. This may have affected the system tray icon behavior because the App Indicator Gnome Shell Extension was developed for X11 and is not maintained.
    • I feel like I encounter a new system tray icon issue every Ubuntu release as the behavior changes. What are the alternatives to this? My application is based in Qt so do not have any other choice but QSystemTrayIcon just seeing if there is any other tool out there because a bit frustrated at the moment.
    Last edited by anshah; May 4th, 2024 at 12:57 AM.

  2. #2
    Join Date
    Jun 2006
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu 24.04: QSystemTrayIcon disappears after logout/login

    Ubuntu 22.04 Desktop Guide - Ubuntu 24.04 Desktop Guide - Forum Guide to BBCode - Using BBCode code tags

    Member: Not Canonical Team

    If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to - unsolicited PMs concerning forum accounts will be ignored.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts