While debugging some issues related to portals (flatpak/xdg-desktop-portal#1076), it seems like the root folder in /proc/{PID} (where PID is the PID of the command ran by bwrap) doesn't match what is expected in the sandboxed environment, which causes issues when trying to use portals.
For instance, I have a .flatpak-info file in the root folder of the sandboxed environment (required for portals to work correctly), but said file does not appear in the root folder of /proc/{PID}.
Of course the program still reports the filesystem correctly, but other programs like xdg-desktop-portal will behave differently then intended
While debugging some issues related to portals (flatpak/xdg-desktop-portal#1076), it seems like the
rootfolder in/proc/{PID}(wherePIDis the PID of the command ran bybwrap) doesn't match what is expected in the sandboxed environment, which causes issues when trying to use portals.For instance, I have a
.flatpak-infofile in the root folder of the sandboxed environment (required for portals to work correctly), but said file does not appear in therootfolder of/proc/{PID}.Of course the program still reports the filesystem correctly, but other programs like
xdg-desktop-portalwill behave differently then intended