From 42cf0fed74227bf768c59313dd062948db360c32 Mon Sep 17 00:00:00 2001 From: pancaek <20342389+pancaek@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:17:55 -0700 Subject: [PATCH] ksnip: remove /usr/bin in .desktop file --- pkgs/by-name/ks/ksnip/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ks/ksnip/package.nix b/pkgs/by-name/ks/ksnip/package.nix index 462b646d1e96..7b7700200fdc 100644 --- a/pkgs/by-name/ks/ksnip/package.nix +++ b/pkgs/by-name/ks/ksnip/package.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: { qt6.qtsvg ]; + postPatch = '' + substituteInPlace desktop/org.ksnip.ksnip.desktop \ + --replace-fail "Exec=/usr/bin/ksnip" "Exec=ksnip" + ''; + meta = { homepage = "https://github.com/ksnip/ksnip"; description = "Cross-platform screenshot tool with many annotation features";