thunar: enable krita thumbnails
This commit is contained in:
parent
a587610fd1
commit
325cf58e2c
|
@ -10,4 +10,19 @@
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
# Thumbnail support for images
|
# Thumbnail support for images
|
||||||
services.tumbler.enable = true;
|
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";
|
||||||
|
}
|
||||||
|
)
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue