-
Notifications
You must be signed in to change notification settings - Fork 29
wlr-foreign-toplevels pid #77
Comments
The PID isn't a good solution because:
What you describe sounds like a more general problem. I think you should open an issue in wayland-protocols to talk about this. |
I tried if you mean https://gitlab.freedesktop.org/wlroots/wlr-protocols/-/issues EDIT: found it
The suggestion was to use PID.
|
Duplicate of #57 |
Below appears to affect all wayland compositors / environments (and X),
respectively any panel / dock that has the ability to pin an
application for quick
launching when all it's surfaces are closed.
wayland api provides the appId / title (IIRC this is the xdg-shell protocol)
X api provides the appId / title / icon
custom wayland wlroots protocol wlr-foreign-toplevel-management
provides the same
The implementation of all desktops environments face the following problem,
they need to match the appId to a desktop file to create a launcher,
which is done by looking up in all the directories $XDG_DATA_DIRS
until a desktop file matching the appId is found.
This is completely broken by design, especially in the times of
flatpak and snap.
As an example take $application, it can be installed
/usr/local/share/applications/
/var/lib/flatpak/share/applications/
$HOME/.local/share/applications/
All of the above are exposed as $XDG_DATA_DIRS whatever application you pin
depends on the priority the lookup is done, very often it will not pin
the application it should!
A solution is to provide the PID and than being able to find the binary.
Consider adding the PID to wlr-foreign-toplevels
The text was updated successfully, but these errors were encountered: