-
Notifications
You must be signed in to change notification settings - Fork 66
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
SteamVR setup fails when trying to set capabilities on the steamvr-launcher binary #898
Comments
Most likely flatpak sandbox prevents this. |
I think this is probably going to require some collaboration between Valve and several upstream projects like Wayland, Gnome and KDE for the XDG permissions etc. I don't foresee it getting solved quickly since it already feels like Valve has abandoned SteamVR for linux given the long standing issues we already have. |
We're facing the same issue in our packaging in Nix: NixOS/nixpkgs#42117 If you find a solution, let us know. You might be able to hack something up using flatpak's HostCommand though: https://github.com/flatpak/flatpak/blob/a0505f52d993837ce7ce96801f54eb37d55dadfb/data/org.freedesktop.Flatpak.xml#L109 |
Related issue NixOS/nixpkgs#217119 Even if you set the capability on the binary manually, SteamVR can not utilize it, as it's running inside an unprivileged namespace created by bwrap, where these capabilities are dropped. Not sure if it's possible to fix this while still using bwrap 🤔. |
Using nice from inside flatpak requires portal like with gamemode. I wonder if it would be enough in this case though renice operation to fail silently rather than error out. |
In this case, it is not about using Check kernel source code here: |
Taken from https://codeberg.org/Scrumplex/flake This works around NixOS/nixpkgs#217119 and flathub/com.valvesoftware.Steam#898 Signed-off-by: Sefa Eyeoglu <[email protected]>
Taken from https://codeberg.org/Scrumplex/flake This works around NixOS/nixpkgs#217119 and flathub/com.valvesoftware.Steam#898 Signed-off-by: Sefa Eyeoglu <[email protected]>
Flatpak info
Flatpak 1.12.7
Problem description
When setting up SteamVR, the process tries to set capabilities on the
steamvr-launcher
binary but fails to do so because it requires sudo/root for that. This can be worked around from the host system:However it would of course be great to be able to have this working out-of-the-box.
After the workaround SteamVR seems to work great (as far as can work "great" on Linux that is, no audio and annoying bugs like ValveSoftware/SteamVR-for-Linux#334 that make the experience anything but perfect, but these are SteamVR on Linux problems, not Flatpak related) and I can launch and play at least Beat Saber through Proton.
This issue is split off #636.
Does this issue reproduce with native Steam
No, as SteamVR can just use sudo there.
The text was updated successfully, but these errors were encountered: