Skip to content

Modernize tray icon: use AyatanaAppIndicator3 (SNI)#441

Open
mikhailnov wants to merge 1 commit into
OpenPrinting:masterfrom
mikhailnov:new-tray2
Open

Modernize tray icon: use AyatanaAppIndicator3 (SNI)#441
mikhailnov wants to merge 1 commit into
OpenPrinting:masterfrom
mikhailnov:new-tray2

Conversation

@mikhailnov

@mikhailnov mikhailnov commented Jun 15, 2026

Copy link
Copy Markdown
Contributor
  • Replace deprecated Gtk.StatusIcon (XEmbed) with AyatanaAppIndicator3 (StatusNotifierItem protocol), shown natively in KDE Plasma and other modern desktops. The old XEmbed-based icon was not displayed in KDE Plasma 6, which dropped support for legacy system tray icons.
  • Use icon names from system theme: printer, printer-printing, printer-error, printer-warning
  • Support left-click (Activate signal, libayatana-appindicator >= 0.6.0) and tooltip (set_tooltip_title) with graceful fallback on older versions
  • Lazy import of AyatanaAppIndicator3 (only when applet mode is used)
  • Enable autostart in KDE (remove from NotShowIn in print-applet.desktop.in)
image image

Co-authored-by: Z.AI GLM

We in ROSA and MOS decided to use system-config-printer in KDE 6 out of the box, not KDE's print-manager, because s-c-p works better in adding printers and has integration with polkit. print-manager will require a lot of attention to start working not worse.

CC @alexpevzner

- Replace deprecated Gtk.StatusIcon (XEmbed) with AyatanaAppIndicator3
  (StatusNotifierItem protocol), shown natively in KDE Plasma and other
  modern desktops. The old XEmbed-based icon was not displayed in KDE
  Plasma 6, which dropped support for legacy system tray icons.
- Use icon names from system theme: printer, printer-printing,
  printer-error, printer-warning
- Support left-click (Activate signal, libayatana-appindicator >= 0.6.0)
  and tooltip (set_tooltip_title) with graceful fallback on older versions
- Lazy import of AyatanaAppIndicator3 (only when applet mode is used)
- Enable autostart in KDE (remove from NotShowIn in print-applet.desktop.in)

Co-authored-by: Z.AI GLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant