Create a symlink to the desktop file in local applications dir on startup #1238
Replies: 12 comments 2 replies
-
Thanks for looking into this @easyteacher, but this needs to be fixed properly in Wayland. Wayland should not assume that people are using Wayland is a project that creates additional work for other projects by breaking things that were working fine for decades in X11, and I don't have the time nor energy to spend any time on it. |
Beta Was this translation helpful? Give feedback.
-
Wayland doesn't care,
Why? That's just your opinion. It makes sense to try to see if the
Wayland is not "XDG-centric" in general, but having
For a certain degree of working.
Luckily @easyteacher implemented it! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification @Sodivad. I have never heard of |
Beta Was this translation helpful? Give feedback.
-
So, is this caused by Wayland or by KDE Plasma? |
Beta Was this translation helpful? Give feedback.
-
Ultimately the problem was caused by a mismatch between what AppImage provides and what Plasma (and other desktop environments) expected. Plasma is now being nice by accommodating AppStream despite its non-compliance with XDG specs that desktop environmental typically expect compliance with, which I gather is intentional. |
Beta Was this translation helpful? Give feedback.
-
It's an issue with AppImage's deployment model, which can be kind of fixed by https://github.com/TheAssassin/AppImageLauncher . The fix in upstream is only a workaround for AppImages, to show icons in the task manager. |
Beta Was this translation helpful? Give feedback.
-
@easyteacher if this is a bug in libappimage, please open an issue there. |
Beta Was this translation helpful? Give feedback.
-
AppImageLauncher and libappimage are purely optional. The experience of how well a window manager can show icons should not depend on those optional components. So I would imagine that it would need to be fixed elsewhere? |
Beta Was this translation helpful? Give feedback.
-
Because in wayland protocols there is no way to set an icon for a window, and there are some discussions in https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/52 . But it's not only about the icon, The "Pin to task manager" feature also depends on desktop files. |
Beta Was this translation helpful? Give feedback.
-
Imho the display server should be agnostic to how window managers work. This is my main criticism of Wayland - no clear separation of concerns, and a "Linux Distribution" centric worldview. It all seems to be architected to mainly fit the Red Hat/Fedora/Gnome/XDG stack (and because people would otherwise complain, a bit of KDE, too). What about using Wayland for non-Linux, non-XDG operating systems? |
Beta Was this translation helpful? Give feedback.
-
Wayland works on FreeBSD as well. I am not sure why XDG-centric is a bad thing. |
Beta Was this translation helpful? Give feedback.
-
See https://nicolasfella.de/posts/fixing-wayland-taskbar-icons/ for more details
In short, on Wayland, a window manager can only match a window to a desktop file, and assign the icon from the desktop file to the window. So to properly show icons on Wayland, it's necessary to create a symlink to the desktop file in local applications dir on startup.
See also: https://invent.kde.org/plasma/kwin/-/merge_requests/3519
X11 Part: #779
Beta Was this translation helpful? Give feedback.
All reactions