From 325cf58e2ce9d3461cf546c4f5227036a787aa76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 7 Feb 2024 12:45:30 -0300 Subject: [PATCH] thunar: enable krita thumbnails --- system/thunar.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/system/thunar.nix b/system/thunar.nix index e3af8e7..5a14448 100644 --- a/system/thunar.nix +++ b/system/thunar.nix @@ -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"; + } + ) + ]; }