From fc5e83194610f1f14af3b31f540582e8cd1abb0a Mon Sep 17 00:00:00 2001 From: Even Brenden Date: Tue, 9 Feb 2021 16:33:33 +0100 Subject: [PATCH] retext: fix XDG desktop file --- pkgs/applications/editors/retext/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/retext/default.nix b/pkgs/applications/editors/retext/default.nix index c32e8315756..6d585c01329 100644 --- a/pkgs/applications/editors/retext/default.nix +++ b/pkgs/applications/editors/retext/default.nix @@ -53,6 +53,10 @@ in python.pkgs.buildPythonApplication { paths = map (path: "${path}/lib/aspell") enchantAspellDicts; }}" ) + + substituteInPlace $out/share/applications/me.mitya57.ReText.desktop \ + --replace "Exec=ReText-${version}.data/scripts/retext %F" "Exec=$out/bin/retext %F" \ + --replace "Icon=ReText-${version}.data/data/share/retext/icons/retext.svg" "Icon=$out/share/retext/icons/retext.svg" ''; meta = with stdenv.lib; {