Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set prgname to match the application id #1318

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

bbhtt
Copy link
Contributor

@bbhtt bbhtt commented Oct 23, 2023

When launched on wayland with WAYLAND_DEBUG=1 Liferea sets the app id "liferea" but not net.sourceforge.liferea:

[1225601.077]  -> [email protected]_app_id("liferea")

When launched on KDE Wayland session, it expects the desktop file name to match the application id to look up the correct app icon to show in taskbar app switcher etc. But instead it tries too look up an icon called "liferea" which does not exist. So liferea shows up with the default wayland icon instead of the app icon.

Setting WM_CLASS here won't work and we can't export two desktop files.

This does not effect GNOME because it tries harder to guess the app icon.

When launched on wayland with `WAYLAND_DEBUG=1` Liferea sets the app id
"liferea" but not net.sourceforge.liferea:

```
[1225601.077]  -> [email protected]_app_id("liferea")
```

When launched on KDE Wayland session, it expects the desktop file name
to match the application id to look up the correct app icon to show in
taskbar app swicther etc. But instead it tries too look up an icon
called "liferea" which does not exist. So liferea shows up with the
default wayland icon instead of the app icon.

Setting WM_CLASS here won't work and we can't export two desktop files.

This does not effect GNOME because it tries harder to guess the app icon
@bbhtt
Copy link
Contributor Author

bbhtt commented Oct 23, 2023

I think this was overlooked when everything was changed to match the app id in 0dea39b

But actually the appid was liferea all this time.

I myself didn't notice this because I don't use KDE. But happened to see it when debugging the tray icon issue with flatpaks and testing it on KDE.

This should not cause any change in behavior other than just setting the "correct" app id:

[1643363.357]  -> [email protected]_app_id("net.sourceforge.liferea")

The icons and desktop file are already named net.sourceforge.liferea so nothing else needs to change.

@bbhtt
Copy link
Contributor Author

bbhtt commented Oct 23, 2023

You can check the desktopFilename KDE plasma wayland expects by
running qdbus org.kde.KWin /KWin org.kde.KWin.showDebugConsole > Wayland windows > Liferea

bbhtt added a commit to bbhtt/net.sourceforge.liferea that referenced this pull request Oct 23, 2023
bbhtt added a commit to bbhtt/net.sourceforge.liferea that referenced this pull request Oct 23, 2023
bbhtt added a commit to bbhtt/net.sourceforge.liferea that referenced this pull request Oct 23, 2023
@lwindolf lwindolf merged commit 417fd1f into lwindolf:master Oct 23, 2023
1 check passed
@lwindolf lwindolf added this to the 1.15.5 milestone Oct 23, 2023
@lwindolf lwindolf self-assigned this Oct 23, 2023
@bbhtt bbhtt deleted the prg-name-rdns branch October 23, 2023 13:44
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.

2 participants