Skip to content

Load tray icon directly on Linux - #13478

Open
hifi wants to merge 1 commit into
keepassxreboot:developfrom
hifi:fix/wayland-tray-icon
Open

Load tray icon directly on Linux#13478
hifi wants to merge 1 commit into
keepassxreboot:developfrom
hifi:fix/wayland-tray-icon

Conversation

@hifi

@hifi hifi commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

On Wayland specifically it seems that relying on the icon name isn't enough on Qt6 to load the correct icon. It is likely a Qt bug but we can workaround it.

I don't know if this is a good approach but if no one knows any better it at least seems to work. Might need to load the colorful icon like this as well for consistency?

Testing strategy

Works fine on Wayland KDE now, this might affect X11 as well but haven't yet tested it, if it does it's likely a Qt6 bug.

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)

@hifi hifi added platform: Linux pr: bugfix Pull request fixes a bug labels Jun 29, 2026
On Wayland specifically it seems that relying on the icon name isn't
enough on Qt6 to load the correct icon. It is likely a Qt bug but we can
workaround it.
@droidmonkey
droidmonkey force-pushed the fix/wayland-tray-icon branch from be21f5e to c81b7f5 Compare July 1, 2026 03:44
@hifi

hifi commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

We discussed that this has the unfortunate side effect of overriding theme based icons, finding and understanding the root cause might be worth doing even if it's a Qt/Plasma bug.

@phoerious

Copy link
Copy Markdown
Member

I don't think it's a bug. The icon resolution works if the icons are installed on the system. It fails if they are not, such as when you use the AppImage. In that case, it falls back to the app icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Linux pr: bugfix Pull request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants