| 26 Apr 2023 |
uep | nautilus still doesn't seem to find it / show thumbs, but it might need a session restart | 04:23:43 |
uep | nope, it was not that | 04:30:43 |
uep | oof, there's a lot in $XDG_DATA_DIRS | 04:33:13 |
Jan Tojnar | uep: looks like heif.thumbnailer expects heif-thumbnailer on PATH | 04:33:23 |
Jan Tojnar | so you will need both libheif.bin and libheif.out | 04:33:37 |
uep | ahh | 04:33:57 |
Jan Tojnar | the thumbnailer file should probably use absolute path to avoid this | 04:34:31 |
uep | still no | 04:38:11 |
uep | and heif-thumbnailer is in path | 04:40:23 |
uep | they're *.heic filenames, but that does seem to come up as the right mime type | 04:40:54 |
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 |