Skip to content

Commit

Permalink
papers: Make thumbnailer file point to absolute path
Browse files Browse the repository at this point in the history
Allows use with nautilus(bubblewrap) even if installed in home.packages

(cherry picked from commit 8ce371c)
  • Loading branch information
anewdi committed Sep 15, 2024
1 parent dabcd44 commit 06bd95b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/pa/papers/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ stdenv.mkDerivation (finalAttrs: {
"-Dkeyring=disabled"
];

postInstall = ''
substituteInPlace $out/share/thumbnailers/papers.thumbnailer \
--replace-fail '=papers-thumbnailer' "=$out/bin/papers-thumbnailer"
'';

preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
'';
Expand Down

0 comments on commit 06bd95b

Please sign in to comment.