Sender | Message | Time |
---|---|---|
6 Jul 2024 | ||
Hello, I'd like to install the avif pixbuf loader, but I'm very unsure on how to proceed. For starters, I'm not even sure if it's packaged; it could be in the libavif package, as its source code is hosted in the libavif repo, but some other distros package the two separatly, and I'm not sure how to check that by myself. Furthermore, setting this up seems to require more than just "installing the package", apparently Gdk needs some special handling for loaders to be taken into account. | 17:23:21 | |
Does anyone know how to make that work? | 17:23:31 | |
7 Jul 2024 | ||
08:53:41 | ||
In reply to @jthulhu:matrix.org libavif package contains it. You can install it globally through the gdk-pixbuf NixOS module but that is an ugly globalism frail with many issues and will not affect apps that already have gdk-pixbuf loaders provided locally by a wrapper. The only reliable method is passing the loader to each app that requires it – see eog package for an example. | 21:17:05 | |
21:53:16 | ||
8 Jul 2024 | ||
In reply to @jtojnar:matrix.orgIf I understand correctly that code, all I need to do is to set services.xserver.gdk-pixbuf.modulePackages = [ libavif ]; ? | 04:45:03 | |
I tried doing that, but it still doesn't work, my Gtk applications still cannot open avif images | 05:04:46 | |
06:33:29 | ||
In reply to @jthulhu:matrix.orgThat should be correct. But as mentioned, it won't work for some apps. Which ones did you try | 08:35:49 | |
* That should be correct. But as mentioned, it won't work for some apps. Which ones did you try? | 08:36:18 | |
In reply to @jtojnar:matrix.orgI tried to see if nautilus was capable of rendering thumbnails of avif images. I've also written a very stupid Gtk application that only tries to load a file as a Gtk texture in Rust, just for the purpose of testing this (https://github.com/jthulhu/rki/tree/mwe). Yet, eog seems to work correctly, despite the fact that in the nix code that packages it, libavif doesn't seem to appear anywhere. | 09:03:36 | |
11:30:35 | ||
9 Jul 2024 | ||
In reply to @jthulhu:matrix.orglibheif, which eog has, also supports avif files. See https://nixos.org/manual/nixpkgs/stable/#sec-language-gnome for an explanation about the necessary wrapping. | 06:35:43 | |
Can someone help me with gnome tracker3, it seems like it is very broken. When I use tracker3-search --music --all for example, it only shows three mp3 files from my Downloads directory, even though I have many .opus ones in /home/user/Music , same thing for Videos, and more ... | 16:53:10 | |
I tried tons of things, removing .cache/tracker3 , using tracker3-reset , reindexing, etc. etc. | 16:53:49 | |
In my logs I see .tracker-miner: Could not launch metadata extractor: Failed to execute child process "/nix/store/.../tracker-extract-3" (Permission denied) . Maybe this is the problem. | 17:13:38 | |
eog uses a function gnome._gdkPixbufCacheBuider_DO_NOT_USE to do the wrapping, but I feel like there's something suggesting me not to use that function :P more seriously, the doc says that only one extra loader can be used, because otherwise Nix doesn't know how to merge properly the caches, but the eog packages seems to happily request four extra loaders. | 17:14:31 | |
ok so i just found an issue about it on github https://github.com/NixOS/nixpkgs/issues/319587 | 17:19:26 | |
Jan Tojnar: i saw you commented on this problem, was there a fix already upstreamed to nixpkgs? | 17:23:35 | |
10 Jul 2024 | ||
yes, the environment variable can still only take a single cache file. I added gnome._gdkPixbufCacheBuider_DO_NOT_USE to allow merging multiple caches into one. | 05:42:08 | |
I did not want to document it until the API stabilized but I do not think there will be any changes at this point. We should probably just drop the suffix and document it. | 05:43:58 | |
In reply to @jayhenks:matrix.orgno upstream or downstream fix yet. You can override tracker-miners locally for now tracker-miners.overrideAttrs (old: { mesonFlags = old.mesonFlags ++ [ "-Dlandlock=disabled" ]; }) | 05:46:45 | |
12 Jul 2024 | ||
08:25:33 | ||
Jan Tojnar: after adding the below code I still do not see my music files, or am I doing it wrong?
| 09:27:54 | |
Reindexed after doing this | 09:28:17 | |
also stopped and started, same error:
| 09:32:23 | |
* also stopped and started the service, same error:
| 09:32:37 | |
13 Jul 2024 | ||
12:42:02 | ||
jayhenks: The already present unpatched miners probably won out. You would have to disable this option and then replicate the options below. Or use an overlay. | 12:51:57 | |
In reply to @jtojnar:matrix.orgalright yeah, I will just wait for an upstream patch for this issue. Thanks for all the help | 13:15:56 |