Add support for flatpak portal#146
Conversation
That gives some meaning to the strings and makes it easier to see what the arguments of sd_bus_call_method mean without checking the function docs.
Good point! Fixed. |
|
The portal landed, so I guess this can go in. |
When we detect that we are running inside a flatpak, talk to the flatpak portal D-Bus service instead of the session daemon. This is necessary because flatpak uses pid namespace isolation (see man pid_namespaces(7)) and thus the pid needs to be translated from the flatpak pid namespace to the host namespace. This translation is happening inside the GameMode xdg-desktop-portal.
|
Merged. Thanks a lot for working on a solution for this! |
Add support for flatpak portal
|
Disclaimer: I am just a tinkerer, and not familiar with the inner workings of GameMode, Flatpak, or DBus. Executing However, the following errors are logged to Steam Flatpak stderr as DBus registration: DBus deregistration: Setup |
Add support to transparently use the portal when running inside a flatpak. This is necessary because flatpak uses pid namespace isolation (see #73) and therefore process ids need to be translated for the gamemode daemon .
This is a draft PR because it depends on flatpak/xdg-desktop-portal#314