nixpkgs/pkgs/desktops
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
..
cdesktopenv treewide: with stdenv.lib; in meta -> with lib; 2021-01-11 10:38:22 +01:00
cinnamon cinnamon-control-center: remove unused inputs 2021-02-22 02:27:57 +01:00
enlightenment enlightenment.evisum: 0.5.10 -> 0.5.11 2021-02-12 06:16:53 +00:00
gnome-2 Configure gnome2.gtksourceview to build with autoconf 2.69 2021-03-14 11:28:01 -07:00
gnome-3 Merge pull request #117292 from rhoriguchi/gnomeExtensions.unite 2021-03-25 17:04:30 +01:00
gnustep gnustep.gui: fix icu 68 compatibility 2021-03-01 14:28:20 +01:00
lumina treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
lxde/core lxde: cosmetical changes 2021-02-08 09:54:36 -03:00
lxqt lxqt.lxqt-policykit: fix missing buildInput polkit (#115529) 2021-03-09 17:20:06 +01:00
mate treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
pantheon pantheon.elementary-session-settings: remove unused input 2021-03-01 15:19:05 +01:00
plasma-5 kwin: Unwrap executable name for desktop file search 2021-03-25 14:17:40 -04:00
rox/rox-filer pkgs/desktops: pkgconfig -> pkg-config 2021-01-16 23:49:59 -08:00
surf-display treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
xfce Merge pull request #114768 from SuperSandro2000/fix-collection19 2021-03-02 16:59:03 +01:00