Skip to content
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

Steam not working #37

Open
simpansoftware opened this issue Oct 12, 2024 · 1 comment
Open

Steam not working #37

simpansoftware opened this issue Oct 12, 2024 · 1 comment

Comments

@simpansoftware
Copy link

simpansoftware commented Oct 12, 2024

It asks for bwrap permissions, which terraos cant have because of shim limitations, but when i run this bash script that makes steam run. The bash script is in the replies.

It doesnt work since i cant run steam as root which this does.

I have also tried using a different account while still signed into terraos using runuser -l nonroot -c steam but it gives me a log of the attached file here
crashdump.txt

If it is possible, could you make a fix similar to fix_bwrap in shimboot

@simpansoftware
Copy link
Author

#!/bin/bash

set -e

if [ ! "$HOME_DIR" ]; then
sudo HOME_DIR="$HOME" $0
exit 0
fi

fix_perms() {
local target_file="$1"
chown root:root "$target_file"
chmod u+s "$target_file"
}

fix_perms /usr/bin/bwrap

steam_bwraps="$(find "$HOME_DIR/.steam/" -name 'srt-bwrap')"
for bwrap_bin in $steam_bwraps; do
cp /usr/bin/bwrap "$bwrap_bin"
fix_perms "$bwrap_bin"
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant