!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

410 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)92 Servers

Load older messages


SenderMessageTime
26 Apr 2023
@uep:matrix.orguepnautilus still doesn't seem to find it / show thumbs, but it might need a session restart04:23:43
@uep:matrix.orguepnope, it was not that04:30:43
@uep:matrix.orguepoof, there's a lot in $XDG_DATA_DIRS04:33:13
@jtojnar:matrix.orgJan Tojnar uep: looks like heif.thumbnailer expects heif-thumbnailer on PATH 04:33:23
@jtojnar:matrix.orgJan Tojnar so you will need both libheif.bin and libheif.out 04:33:37
@uep:matrix.orguepahh04:33:57
@jtojnar:matrix.orgJan Tojnarthe thumbnailer file should probably use absolute path to avoid this04:34:31
@uep:matrix.orguepstill no04:38:11
@uep:matrix.orguepand heif-thumbnailer is in path04:40:23
@uep:matrix.orguep they're *.heic filenames, but that does seem to come up as the right mime type 04:40:54
@uep:matrix.orguep
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
@jtojnar:matrix.orgJan Tojnar uep: what mime type does it come as? 04:50:17
@uep:matrix.orguepimage/heif same as in the .thumbnailer file04:51:02
@jtojnar:matrix.orgJan Tojnar oh, I misread it as not 04:52:07
@jtojnar:matrix.orgJan Tojnarwould expect it to work, then04:52:15
@uep:matrix.orguepthere's no persistent nautilus process, so I'm not sure restarting the desktop (again) is worth trying?04:53:05
@jtojnar:matrix.orgJan TojnarI think just reloading the directory in nautilus should trigger it04:53:42
@jtojnar:matrix.orgJan Tojnaras long the thumbnailer is in XDG_DATA_DIRS04:54:06
@uep:matrix.orguepit is04:54:17
@uep:matrix.orguepthere's a 'TryExec' field, which perhaps implies something remembers it failed04:54:35
@uep:matrix.orguepbut I don't know how long04:54:53
@uep:matrix.orguepsurely not across process restarts04:55:01
@jtojnar:matrix.orgJan Tojnaryeah, definitely not04:55:36
@jtojnar:matrix.orgJan Tojnarit just runs the program and if it returns non-zero status code, the entry is ignored04:56:08
@jtojnar:matrix.orgJan Tojnaractually, that might be the issue04:56:41
@uep:matrix.orguepthe entry.. as in the list of thumbnailers.. sure04:56:43
@jtojnar:matrix.orgJan Tojnar running heif-thumbnailer without arguments appears to exit with 1 status 04:57:30
@uep:matrix.orguepoh no04:57:37
@jtojnar:matrix.orgJan 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:matrix.orgueplibheif rebuilding which seems like a good start05:04:42

Show newer messages


Back to Room ListRoom Version: 6