| 25 Apr 2023 |
uep | I thought I saw a fix to let the file manager show HEIF thumbnails, but it isn't.. did I imagine or misremember? | 04:24:49 |
Jan Tojnar | uep: I would expect it to work if you install libheif | 15:15:08 |
| bendlas joined the room. | 20:00:21 |
bendlas | since a recent update, my gnome apps (also some others like thunderbird, ...) start up super slow (10-20 seconds), when I run them outside of gnome (exwm). anybody noticed this, or got an idea how to fix? | 20:02:18 |
Jan Tojnar | bendlas: maybe run dbus-monitor --session to check if they are not waiting for some service | 20:07:24 |
bendlas | hmm .. couple of errors for trying to get various session managers: org.gnome.SessionManager org.xfce.SessionManager
but it seems to block on StartServiceByName org.freedesktop.portal.Desktop ...
| 20:13:26 |
bendlas | Oh, I think found it xdg-desktop-portal-gnome[4680]: error: Failed to initialize display server connection: Unsupported or missing session type '' | 20:19:27 |
bendlas | investigating https://github.com/NixOS/nixpkgs/issues/206630 ... | 20:21:26 |
Jan Tojnar | Do you have XDG_SESSION_TYPE=x11 then? | 20:25:50 |
Jan Tojnar | * Do you have XDG_SESSION_TYPE=x11 in the environment then? | 20:25:57 |
bendlas | I do. At least in my user shell ... | 20:27:58 |
Jan Tojnar | bendlas: maybe missing dbus-update-activation-environment then? | 20:29:23 |
Jan Tojnar | looks like we have an option for that https://github.com/NixOS/nixpkgs/blob/2eb3e4c780fa47edc4a1e8b372f9b9a140c64926/nixos/modules/services/x11/display-managers/default.nix#L448-L450 | 20:30:49 |
bendlas | from a first test from my terminal, it looks like that should do the trick, nice! thank you very much Jan Tojnar ! | 20:34:00 |
| 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 |