glib:gio / dbus-appinfo test fails: GLib-GIO:ERROR:../../../../Projects/glib/gio/tests/dbus-appinfo.c:326:on_flatpak_open: 'g_file_equal (files[0], f)' should be TRUE
This test fails 100% of the time in my jhbuild environment:
207/265 glib:gio / dbus-appinfo FAIL 0.99 s (killed by signal 6 SIGABRT)
--- command ---
G_TEST_BUILDDIR='/home/mcatanzaro/.cache/jhbuild/build/glib/gio/tests' GIO_LAUNCH_DESKTOP='/home/mcatanzaro/.cache/jhbuild/build/glib/gio/gio-launch-desktop' G_TEST_SRCDIR='/home/mcatanzaro/Projects/glib/gio/tests' GIO_MODULE_DIR='' /home/mcatanzaro/.cache/jhbuild/build/glib/gio/tests/dbus-appinfo
--- stdout ---
# random seed: R02S408991eae9d0f0c4fcd6bb9134d4dd90
# GLib-DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested)
1..2
# Start of appinfo tests
# GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
ok 1 /appinfo/dbusappinfo
# /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal.
# on_flatpak_open received file '/home/mcatanzaro/Projects/glib/gio/tests/org.gtk.test.dbusappinfo.flatpak.desktop'
Bail out! GLib-GIO:ERROR:../../../../Projects/glib/gio/tests/dbus-appinfo.c:326:on_flatpak_open: 'g_file_equal (files[0], f)' should be TRUE
--- stderr ---
dbus-daemon[646186]: [session uid=1000 pid=646186] Activating service name='org.freedesktop.portal.Documents' requested by ':1.0' (uid=1000 pid=645912 comm="/home/mcatanzaro/.cache/jhbuild/build/glib/gio/tes" label="unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023")
dbus-daemon[646186]: [session uid=1000 pid=646186] Successfully activated service 'org.freedesktop.portal.Documents'
**
GLib-GIO:ERROR:../../../../Projects/glib/gio/tests/dbus-appinfo.c:326:on_flatpak_open: 'g_file_equal (files[0], f)' should be TRUE
cleaning up pid 646186
-------
Full log written to /home/mcatanzaro/.cache/jhbuild/build/glib/meson-logs/testlog.txt
FAILED: meson-test
I'm not convinced there exists code to ensure that the document portal has exported the desktop file before the open callback runs?