!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

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

Load older messages


SenderMessageTime
26 Apr 2023
@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
@uep:matrix.orguepstill no. the override worked but no difference in outcome05:06:28
@uep:matrix.orguephm05:17:23
@uep:matrix.orguepit appears not to be using the file at all..05:17:41
@uep:matrix.orguep I changed it to "TryExec=${pkgs.coreutils}/bin/touch /tmp/heif-thumbs-up" 05:18:02
@uep:matrix.orguepno such file is made05:18:08
@uep:matrix.orguep
❯ echo $XDG_DATA_DIRS | sed -e 's/:/\n/g' | grep current-system
/run/current-system/sw/share
05:19:48
@uep:matrix.orguepso it should be found05:19:55
@uep:matrix.orguepOH 05:31:32
@uep:matrix.orguepfixed05:31:35
@uep:matrix.orguep rm ~/.cache/thumbnails/fail/gnome-thumbnail-factory/* 05:32:01

Show newer messages


Back to Room ListRoom Version: 6