.flatpak-info/bwrapinfo.json emulation #2

Open
opened 2025-08-19 05:47:11 +09:00 by netadr · 1 comment

xdg-desktop-portal requires integration with the sandbox tool for certain portal interfaces to function properly (e.g. org.freedesktop.portal.FileChooser.) The way flatpak does this (and probably the easiest way to emulate..) is to introduce a /.flatpak-info file in the mount namespace of xdg-dbus-proxy as well as a bwrapinfo.json at $XDG_RUNTIME_DIR/.flatpak/$INSTANCEID. I was considering attempting this myself but I was curious if there were any plans the maintainers had for this functionality.

`xdg-desktop-portal` requires integration with the sandbox tool for certain portal interfaces to function properly (e.g. `org.freedesktop.portal.FileChooser`.) The way `flatpak` does this (and probably the easiest way to emulate..) is to introduce a `/.flatpak-info` file in the mount namespace of `xdg-dbus-proxy` as well as a `bwrapinfo.json` at `$XDG_RUNTIME_DIR/.flatpak/$INSTANCEID`. I was considering attempting this myself but I was curious if there were any plans the maintainers had for this functionality.
ophestra added the
enhancement
help wanted
labels 2025-08-19 11:19:32 +09:00
ophestra added this to the v0.2.0 milestone 2025-08-19 11:19:36 +09:00
cat was assigned by ophestra 2025-08-19 11:19:43 +09:00
ophestra added reference staging 2025-08-19 11:19:55 +09:00
Owner

I have experimented with the document portal in the past, all implementations I've seen does not work across uids. I'm still looking into what I can do about that.

For now I implemented file sharing in my setup somewhat like android's /sdcard, where a permissionless filesystem is optionally exposed to apps, and most xdg user dirs are pointed at that directory for apps and the priv-user, so stuff like downloads still work.

I have experimented with the document portal in the past, all implementations I've seen does not work across uids. I'm still looking into what I can do about that. For now I implemented file sharing in my setup somewhat like android's /sdcard, where a permissionless filesystem is optionally exposed to apps, and most xdg user dirs are pointed at that directory for apps and the priv-user, so stuff like downloads still work.
Sign in to join this conversation.
No description provided.