| 26 Apr 2023 |
uep | In reply to @jtojnar:matrix.org uep: I would expect it to work if you install libheif ah, but it doesn't pull it in itself? because they open fine in (for particular example) eog. | 03:11:41 |
uep | I'll look into it | 03:12:53 |
Jan Tojnar | uep: yeah, we put it in eog, since installing it manually would require a rebuild | 03:14:52 |
Jan Tojnar | nobody bothered to install it globally but it might make sense for consistency | 03:15:50 |
uep | ah. that may be what I'm misremembering. | 03:19:51 |
uep | neither nautilus nor sushi seem to mention it directly, but it might be via gdk-pixbuf? | 03:20:28 |
Jan Tojnar | the thumbnailers are files under XDG_DATA_DIRS/thumbnailers | 03:23:27 |
Jan Tojnar | usually, they are shipped alongside and implemented using the gdk-pixbuf loader | 03:24:44 |
Jan Tojnar | but it is not a requirement | 03:24:51 |
uep | oh, it's a separate program that gets forked.. that makes more sense then as something that can just be installed. cool. | 03:35:34 |
uep | more than just a lib, libheif | 03:35:41 |
uep | hm. no | 03:49:57 |
uep | ❯ nix path-info -r /run/current-system | grep system-path
/nix/store/l9rw34xq925vxwx0mwqyixv109dm9lab-system-path
root in ~
❯ l /nix/store/l9rw34xq925vxwx0mwqyixv109dm9lab-system-path/share/thumbnailers/
total 21K
dr-xr-xr-x 2 root root 5 Jan 1 1970 .
dr-xr-xr-x 50 root root 155 Jan 1 1970 ..
lrwxrwxrwx 1 root root 93 Jan 1 1970 evince.thumbnailer -> /nix/store/pim38bp7gflaxlizqwargkwsmhf8ghlk-evince-44.1/share/thumbnailers/evince.thumbnailer
lrwxrwxrwx 1 root root 115 Jan 1 1970 gnome-font-viewer.thumbnailer -> /nix/store/wxqbimm25dfvk8ny7lcxv6zsi7lq9059-gnome-font-viewer-44.0/share/thumbnailers/gnome-font-viewer.thumbnailer
lrwxrwxrwx 1 root root 91 Jan 1 1970 totem.thumbnailer -> /nix/store/6qm7djw12ys1h5bc5fwacagq0axbya3y-totem-43.0/share/thumbnailers/totem.thumbnailer
| 03:51:01 |
uep | I assume it needs something to add it there? There's a thumbnailer bin in the libheif package but no reason for nautilus to find it otherwise | 03:52:28 |
uep | (this is with libheif in environment.systemPackages directly, rather than just transitively as a dep of (several) other things) | 03:56:43 |
Jan Tojnar | uep: try libheif.out, it defaults to bin output | 04:11:43 |
Jan Tojnar | we should probably move it to a separate output and install that | 04:13:44 |
Jan Tojnar | * we should probably move it to a separate output and install that in GNOME module | 04:13:51 |
uep | lrwxrwxrwx 1 root root 94 Jan 1 1970 heif.thumbnailer -> /nix/store/ig3c3d9931pkdahac2vqy4cvck8k57ix-libheif-1.15.2/share/thumbnailers/heif.thumbnailer | 04:21:19 |
uep | it seems like it should be enabled by default, if eog is already going to pull it in | 04:21:47 |
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 |