-
-
Notifications
You must be signed in to change notification settings - Fork 72
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 app icon on Wayland #417
Conversation
Right now, application icon on Wayland could only be changed by setting application ID that is corresponding to the name of desktop entry. https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:set_app_id
Hi! Are you using Flatpak? I thought this should be handled by the couple of lines here: If you're using the standalone executable, can you call the desktop file I wouldn't be opposed to adding support for a |
I'm using a standalone executable from AUR
This contradicts freedesktop desktop entry spec
|
There's no need for an environment variable for that. The right and only way to set an application icon on Wayland is to set the proper application id which corresponds to its desktop entry which in turn follows the desktop entry specification. This is how all Wayland applications are made. |
Thanks, that makes sense. I knew that Flatpak apps followed that kind of naming convention, but I didn't realize that it was a broader standard. When the Flatpak app ID was created as I've just registered mtkennerly.com (just redirects to GitHub for now), so we can use I don't maintain the distro packages myself, but I do see that both of the AUR packages (ludusavi and ludusavi-bin) set the ID to Besides setting the ID in the Rust code, I think we'll need to make some other changes. I can do these after this merges, but just wanted to bring it up in case you have any feedback/advice:
|
Having two different ID doesn't make much sense. If there's already established ID for Flatpak I think we should use it, making a separate ID for regular use would just create more chaos. |
I understand where you're coming from - keeping a single ID would be simpler. It's just that, when the Flatpak was set up, I only really thought of it as choosing a Flatpak ID rather than a broader Linux ecosystem ID. Now that Ludusavi itself (at an application level) will be officially supporting the ID for Linux in general, I have reservations about committing to I'm not sure if it would be feasible someday to migrate the Flatpak ID, especially since that also affects where the settings are stored on disk, which shouldn't be a problem for distro-specific packages that just need to rename the I'll go ahead and merge this and make some tweaks afterwards. Thanks again for your PR and for raising this concern :) |
Right now, application icon on Wayland could only be changed by setting application ID that is corresponding to the name of desktop entry. https://wayland.app/protocols/xdg-shell#xdg_toplevel:request:set_app_id