Currently flatpakutils.py hardcodes the path to the document portal to /run/user/$UID/doc, but in practice, it depends on the value of $XDG_RUNTIME_DIR (which typically is /run/user/$UID). Problems with this var can lead to bubblewrap (used by flatpak) to fail with messages like 'brwap: Can't find source path : No such file or directory.'
Created attachment 398156 [details] Patch This version checks environment for XDG_RUNTIME_DIR instead of using the dbus method GetMountPoint. Currently there is no direct dbus usage from webkitpy. One issue that may still be present is the complete absence of the runtime directory. Should flatpakutils.py create a 'fake' one or this should be in charge of whoever uses webkit-flatpak? (e.g. the bots scripts).
Committed r260991: <https://trac.webkit.org/changeset/260991> All reviewed patches have been landed. Closing bug and clearing flags on attachment 398156 [details].
<rdar://problem/62714503>