Finding a window's icon
Nicholas Bishop
nbishop at neverware.com
Wed Apr 25 22:49:28 UTC 2018
Hi,
As I understand it, windows under Wayland don't directly expose an icon.
Instead xdg-shell provides an application ID [1] that can be used to
identify the application. The application ID is suggested to be the
basename of the appropriate .desktop file.
>From that I'm guessing that a wayland shell is supposed to search a set of
well-known directories containing .desktop files and attempt to match the
application ID with a filename?
My question is, does that work in practice? Do most applications actually
set the application ID as suggested? (So far I haven't found any that do,
but maybe I'm just testing too small a set of applications.) If that's not
how Wayland shells implement the icon lookup, what's the right way?
More generally, does this mean that displaying the icon for a remote
application requires a corresponding desktop file on the local machine? I
feel like I'm missing something here :)
-Nicholas
[1]
https://github.com/wayland-project/wayland-protocols/blob/master/stable/xdg-shell/xdg-shell.xml#L591
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180425/6b528ec0/attachment.html>
More information about the wayland-devel
mailing list