thunar: enable krita thumbnails

This commit is contained in:
Leonardo Eugênio 2024-02-07 12:45:30 -03:00
parent a587610fd1
commit 325cf58e2c

View file

@ -10,4 +10,19 @@
services.gvfs.enable = true;
# Thumbnail support for images
services.tumbler.enable = true;
environment.systemPackages = [
(
pkgs.writeTextFile {
name = "thumbs";
text = ''
[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "${pkgs.unzip}/bin/unzip -p %i preview.png > %o"
MimeType=application/x-krita;
'';
destination = "/share/thumbnailers/kra.thumbnailer";
}
)
];
}