!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.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
@jtojnar:matrix.orgJan Tojnar

Yeah, that might be it, I was about to suggest playing with the API directly

env G_MESSAGES_DEBUG=all nix-shell -I nixpkgs=$HOME/Projects/nixpkgs -p glib gdk-pixbuf gnome-desktop gobject-introspection 'python3.withPackages(ps: with ps; [ pygobject3 ])' --run 'python3 -c "from gi.repository import GnomeDesktop; f = GnomeDesktop.DesktopThumbnailFactory.new(GnomeDesktop.DesktopThumbnailSize.NORMAL); print(f.generate_thumbnail(\"file:///home/jtojnar/samplefilehub2.heic\", \"image/heif\"))"'

and noticed that failures are cached mentioned there

05:33:25
@uep:matrix.orguep although, weirdly, still no /tmp/heif-thumbs-up which means that bit isn't getting used, and explains how it's not failing for everyone on other platforms too 05:34:09
@uep:matrix.orguep so I suspect, in current nixpkgs, just having libheif.bin libheif.out in systemPackages, and SCROLLING FAR ENOUGH TO SEE NEW IMAGES, is enough to see it working 05:39:42
@uep:matrix.orguepbut it seems worth fixing and enabling by default, given the pkg is already pulled in by eog05:40:24
27 Apr 2023
@maralorn:maralorn.de@maralorn:maralorn.deAnyone else experiencing weird artefacts around electron applications in gnome on unstable?13:12:47

Show newer messages


Back to Room ListRoom Version: 6