-
Notifications
You must be signed in to change notification settings - Fork 877
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
Fix wayland app icon for flatpak. #6134
Fix wayland app icon for flatpak. #6134
Conversation
Currently, the app icon (i.e. titlebar icon in KDE) is incorrect as the app_id is set to FreeTube instead of matching the desktop file with io.freetubeapp.FreeTube.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
App icon looks the same on MacOS (yarn build:arm64
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea how to test this, without doing a full on flatpak release (we unpack the Linux zip files and use their contents for the flatpak, so I don't understand how an extra package.json field would change anything about the flatpak, unless the flatpak runtime reads the package.json file?) but as this doesn't seem to break anything (IDK if this would break the deb install for example), I'm happy to give it a try.
Dismissing my review because it's probably worth checking that this doesn't break the deb builds, which afaik use the |
It's not changing the flatpak, it's changing the value of the app_id set for the xdg_toplevel to match the .desktop file the flatpak provides. If flatpak didn't require such a naming convention, I would have made a PR on the flatpak's repo to rename the file.
Definitely worth checking. My understanding from the docs is that this also changes the name of the generated .desktop file but I'm not familiar with this tooling. |
Unfortunately, with this change, the file generated for .deb files is still named freetube.desktop instead of matching the desktopName key, resulting in wayland icons broken outside of flatpak. Seems like electron builder makes this very frustrating. electron-userland/electron-builder#4071 Unless anybody knows how to work around this, I will close and instead make a PR for the flatpak's repo as there is another option that would achieve this (2nd paragraph). |
As you've opened an pull request on the flatpak repo, I'll close this one. As flathub does a release every time a pull request is merged, we'll merge your pull requests next time we do a FreeTube release, just so you don't think we've forgotten or ignoring it :). |
Pull request was closed
Fix wayland app icon for flatpak.
Pull Request Type
Description
Currently, the app icon (i.e. titlebar icon in KDE) is incorrect as the
app_id is set to FreeTube instead of matching the desktop file with
io.freetubeapp.FreeTube.
Screenshots
Testing
Testing done on an arch linux install.
Untested for distribution packages nor windows and macos builds.
Desktop