attachments-view: Thumbnail factory does not work on Librem5/Pinephone
Tested on Mobian and PureOS.
I got this when I tried to run the thumbnail factory in Mobian:
06:50:35.9697 GnomeDesktop[ 3852]: DEBUG: About to launch script: bwrap --ro-bind /usr /usr --ro-bind /etc/ld.so.cache /etc/ld.so.cache --symlink /usr//bin /bin --symlink /usr//lib /lib --symlink /usr//sbin /sbin --ro-bind-try /var/cache/fontconfig /var/cache/fontconfig --setenv GST_REGISTRY_1_0 /home/mobian/.cache/gnome-desktop-thumbnailer/gstreamer-1.0/gstreamer-1.0.registry --bind /home/mobian/.cache/gnome-desktop-thumbnailer/gstreamer-1.0 /home/mobian/.cache/gnome-desktop-thumbnailer/gstreamer-1.0 --ro-bind-try /etc/alternatives /etc/alternatives --proc /proc --dev /dev --chdir / --setenv GIO_USE_VFS local --unshare-all --die-with-parent --setenv G_MESSAGES_DEBUG all --bind /tmp/gnome-desktop-thumbnailer-TZNY90 /tmp --ro-bind /home/mobian/Bike 02.jpg /tmp/Bike 02.jpg --seccomp 42 /usr/bin/gdk-pixbuf-thumbnailer -s 256 file:///tmp/Bike%2002.jpg /tmp/gnome-desktop-thumbnailer.png
06:50:36.0361 dconf[ 3852]: DEBUG: unwatch_fast: "/org/gtk/settings/purism/" (active: 15, establishing: 0)
(gdk-pixbuf-thumbnailer:2): GLib-GIO-DEBUG: 10:50:36.070: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
06:50:36.0804 dconf[ 3852]: DEBUG: unwatch_fast: "/org/gtk/settings/purism/" (active: 14, establishing: 0)
06:50:36.3544 GLib[ 3852]: WARNING: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was received by waitpid(). See the documentation of g_child_watch_source_new() for possible causes.
06:50:36.3548 GnomeDesktop[ 3852]: DEBUG: Failed to launch script:
06:50:36.3557 GnomeDesktop[ 3852]: DEBUG: Thumbnail script ('/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o') failed for 'file:///home/mobian/Bike%2002.jpg': Child process stopped by signal 0
This does not seem to happen on x86 platforms? and this cannot be recreated in a simpler/stand alone program.
Also annotated here: https://source.puri.sm/Librem5/chatty/-/blob/master/src/chatty-utils.c#L547