-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/client_impl.c:106 should use the correct bus name on the error message. Other than that, really nice simple change on the part of gamemode - glad a solution was found for Flatpak
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