3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
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
..
applications Merge pull request #117192 from r-ryantm/auto-update/helmsman 2021-03-25 15:20:45 +00:00
build-support Merge pull request #115857 from lbpdt/feature/docker-tools-layered-base-image 2021-03-23 18:15:34 -04:00
common-updater
data libkkc-data: stay with python2 2021-03-25 12:40:55 +01:00
desktops kwin: Unwrap executable name for desktop file search 2021-03-25 14:17:40 -04:00
development ocamlPackages.ppxlib: default to 0.22.0 2021-03-25 17:36:51 +01:00
games crispyDoom: stay with python2 2021-03-25 12:13:22 +01:00
misc cen64: unstable-2020-02-20 -> unstable-2021-03-12 2021-03-24 07:10:24 -05:00
os-specific dmtcp: stay with python2 2021-03-25 12:22:50 +01:00
pkgs-lib
servers knot-dns: 3.0.4 -> 3.0.5 2021-03-25 13:32:50 +01:00
shells mksh: fix license 2021-03-23 15:24:43 -03:00
stdenv stdenv: Fix regression on ARM+static when enabling hardening (#115363) 2021-03-23 18:45:48 -04:00
test
tools paperlike-go: init at unstable-2021-03-22 2021-03-25 17:42:16 +02:00
top-level Merge pull request #117595 from adisbladis/paperlike-go-init 2021-03-25 19:31:16 +02:00