Skip to content

[flatpak] Add system tray icon support for Wayland #1967

Description

@froggie2523

Summary

I'd like to open a discussion about this topic and gather feedback and ideas from the community.
What we know and what needs to be done:

Prerequisites

  1. Password Safe support - Done
    pwsafe updated to support AppIndicator tray icon, v1.26 was recently released.
    PR Linux: add SNI/AppIndicator tray icon support for Wayland #1895 (Linux: add SNI/AppIndicator tray icon support for Wayland)
    PR Linux: adapt SystemTray to wxWidgets 3.3's AppIndicator API changes #1915 (Linux: adapt SystemTray to wxWidgets 3.3's AppIndicator API changes)

  2. wxWidgets support - Done
    wxWidgets v3.2.12, released yesterday, adds support for the AppIndicator library (libayatana-appindicator) for wxTaskBarIcon enabling it to work under Wayland on Linux/Unix.
    Before wxWidgets 3.2.12/3.3.4, wxTaskBarIconBase::IsAvailable() returned true only if X11 windowing system with GTK3 was detected.
    It now also returns true on Wayland when AppIndicator support is available (commit 27e019695935a0d1fff38b6ba672ae612061bdf0).
    Source: https://raw.githubusercontent.com/wxWidgets/wxWidgets/v3.2.12/docs/readme.txt
    Changes since 3.2.11
    This is mostly a bug fix release, the only important addition is support for wxTaskBarIcon under Wayland (#26845).

  3. Flatpak manifest updates - Partially done
    The Flatpak version has recently been updated to use pwsafe v1.26.
    The next step is to update pwsafe flatpak repo to use the libayatana-appindicator module from Flathub's shared-modules repo.
    The flathub/shared-modules repository contains reusable build recipes that apps can include by referencing files such as shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json in their manifests.
    The manifest requires just 2 updates:
    Add the permission that grants D-Bus communication access:
    --talk-name=org.kde.StatusNotifierWatcher
    Add the libayatana-appindicator module:
    shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json

  4. Flathub shared module update - Pending approval by the Code owner
    The libayatana-appindicator module in Flathub's shared-modules needs to be updated to the latest version (v0.6.0).
    Required: libayatana-appindicator v0.6.0 which added a real Activate() D-Bus method for System Tray.
    Current version: 0.5.94
    PR: Update libayatana-indicator and libayatana-appindicator modules flathub/shared-modules#487
    PR: Update libayatana-indicator and libayatana-appindicator modules flathub/shared-modules#495

Why Flatpak?

-Easier updates: The Flatpak package can be updated to use newer wxWidgets and AppIndicator versions without waiting for them to become available in mainstream Linux distributions.
-Faster adoption: Incorporating these changes into native packages may take considerably longer.

How long does it typically take for a new wxWidgets version to appear in mainstream Linux repositories?
For a library such as wxWidgets, there are really three different timelines:
Upstream -> rolling distros:
Usually a few weeks to a couple of months. Fedora and Debian testing/unstable are good examples.
Upstream -> next normal distro release:
Often several months.
Upstream -> Debian stable/Ubuntu LTS distros:
Potentially years.

Therefore, Flatpak is the best choice if our goal is to use a newer wxWidgets version than the host distribution provides and make this feature available to a broad audience.
It would also allow us to gather feedback from more users and potentially identify issues with the new feature.

Test (local build)

Download the ZIP archive from https://github.com/flathub/shared-modules.
Extract it:
$ unzip -q shared-modules-master.zip; mv shared-modules-master shared-modules

Use the latest version of libayatana-appindicator that implements the Activate() D-Bus method for primary-click handling.
$ vi shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json

        "tag": "0.5.94",
        "commit": "31e8bb083b307e1cc96af4874a94707727bd1e79",

Change to:
"tag": "0.6.0",
"commit": "27f9d9ddcf20be87c6cede65c89c5b098b16330d",

Update flatpak manifest:
$ vi org.pwsafe.pwsafe.yml
finish-args:
--talk-name=org.kde.StatusNotifierWatcher
modules:
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json

Build flatpak as usual as described in README.LINUX.FLATPAK.md.

In pwsafe, go to Options > System and enable the "Put icon in System Tray" option.

Screenshots

Attached you can find some screenshots (Debian/GNOME, Fedora/KDE and Pop!_OS/Cosmic).

Image Image Image

Activity

  1. froggie2523 commented on Nov 12, 2026

    @froggie2523
    ContributorAuthor

    Step 4 – The Flathub shared module update has now been completed:

    The libayatana-appindicator module has been updated to v0.6.1.
    flathub/shared-modules#520

  2. added theissue type on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WaylandSpecific to the Wayland Display Serverenhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions