Files
nixpkgs/pkgs/desktops/plasma-5
Samuel Dionne-Riel 1ba2080046 kwin: Unwrap executable name for desktop file search
KWin for wayland uses the `.desktop` file to determine whether a process
is allowed to access some wayland services.

This would be fine if there was a stable interface to map a process to a
`.desktop` file.

Since there is no such interface, they are scanning `.desktop` files for
one where the executable path matches the resolved file "exe" from
`/proc/$PID/exe`.

This would be fine, if we didn't wrap many (most?) KDE/Plasma binaries.

Since we are wrapping binaries, the `exe` symlink points to a wrapped
binary. No `.desktop` file will match for the wrapped binary.

The solution here is to peel away at the `.${name}-wrapped` layers until
we have the intended name for the executable.

It is expected that no `.desktop` file will ever point to a wrapped
binary.
2021-03-25 14:17:40 -04:00
..
2021-02-26 05:50:00 +03:00
2018-10-11 15:24:37 +02:00
2020-12-12 16:06:37 -06:00
2018-10-11 15:24:37 +02:00
2021-02-26 05:50:25 +03:00
2020-12-12 16:06:12 -06:00
2020-08-24 19:45:44 +08:00
2020-08-21 19:48:12 +02:00
2020-12-12 16:06:12 -06:00
2020-12-12 16:06:38 -06:00
2020-12-12 16:05:46 -06:00
2021-02-26 05:50:25 +03:00
2018-06-12 14:30:48 +02:00