| 26 Apr 2023 |
uep | In reply to @jtojnar:matrix.org the thumbnailer file should probably use absolute path to avoid this FWIW, of the existing ones I have, totem uses a /nix/store absolute path, the others don't | 04:43:15 |
Jan Tojnar | uep: what mime type does it come as? | 04:50:17 |
uep | image/heif same as in the .thumbnailer file | 04:51:02 |
Jan Tojnar | oh, I misread it as not | 04:52:07 |
Jan Tojnar | would expect it to work, then | 04:52:15 |
uep | there's no persistent nautilus process, so I'm not sure restarting the desktop (again) is worth trying? | 04:53:05 |
Jan Tojnar | I think just reloading the directory in nautilus should trigger it | 04:53:42 |
Jan Tojnar | as long the thumbnailer is in XDG_DATA_DIRS | 04:54:06 |
uep | it is | 04:54:17 |
uep | there's a 'TryExec' field, which perhaps implies something remembers it failed | 04:54:35 |
uep | but I don't know how long | 04:54:53 |
uep | surely not across process restarts | 04:55:01 |
Jan Tojnar | yeah, definitely not | 04:55:36 |
Jan Tojnar | it just runs the program and if it returns non-zero status code, the entry is ignored | 04:56:08 |
Jan Tojnar | actually, that might be the issue | 04:56:41 |
uep | the entry.. as in the list of thumbnailers.. sure | 04:56:43 |
Jan Tojnar | running heif-thumbnailer without arguments appears to exit with 1 status | 04:57:30 |
uep | oh no | 04:57:37 |
Jan Tojnar | uep: try the following
libheif = pkgs.libheif.overrideAttrs (attrs: {
postInstall = attrs.postInstall or "" + ''
substituteInPlace "$out/share/thumbnailers/heif.thumbnailer" --replace "TryExec=heif-thumbnailer" "TryExec=true"
'';
})
| 04:59:21 |
uep | libheif rebuilding which seems like a good start | 05:04:42 |
uep | still no. the override worked but no difference in outcome | 05:06:28 |
uep | hm | 05:17:23 |
uep | it appears not to be using the file at all.. | 05:17:41 |
uep | I changed it to "TryExec=${pkgs.coreutils}/bin/touch /tmp/heif-thumbs-up" | 05:18:02 |
uep | no such file is made | 05:18:08 |
uep | ❯ echo $XDG_DATA_DIRS | sed -e 's/:/\n/g' | grep current-system
/run/current-system/sw/share
| 05:19:48 |
uep | so it should be found | 05:19:55 |
uep | OH
| 05:31:32 |
uep | fixed | 05:31:35 |
uep | rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/* | 05:32:01 |