Heif/Heic file thumbnailer integration

This commit is contained in:
Filippo Berto 2022-11-05 22:15:09 +01:00
parent 3ba90df615
commit b8eb9a50ab
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
3 changed files with 17 additions and 0 deletions

15
hm_modules/heif.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, ... }:
let thumbnailer = "${pkgs.libheif.bin}/bin/heif-thumbnailer"; in
{
# home.packages = [
# pkgs.libheif.bin
# ];
xdg.dataFile."thumbnailers/heic.thumbnailer".text = ''
[Thumbnailer Entry]
TryExec=${thumbnailer}
Exec=${thumbnailer} -s %s %i %o
MimeType=image/heif;image/heic
'';
}