jcnils / protonhax

Run programs inside your game proton's environment.
BSD 3-Clause "New" or "Revised" License
118 stars 7 forks source link

Steam as flatpak #9

Open T-Quill opened 1 year ago

T-Quill commented 1 year ago

Hello, I have steam as a flatpak, and when I run protonhax ls it shows no games, even though Elden Ring is running. I try and run a command using ER's appid, but it says there are no games with that id. I use Alpine Linux, which unfortunately is incompatible with non-flatpak steam. Do you have any advice on how to get protonhax to access the flatpak of steam? Thanks

jcnils commented 1 year ago

I think the best way would be to package this as flatpak and work with flatpak permissions.

I will take a look at what is needed to maintain a flatpak package.

ilolipopi commented 10 months ago

A manual way:

mkdir $HOME/.var/app/com.valvesoftware.Steam/protonhax

and copy the compiled envload and protonhax binaries into it

In Steam set the launch options for the desired game to $HOME/protonhax/protonhax init %command%, and then launch the game.

Open a bash in the flatpak sandbox

flatpak run --branch=stable --arch=x86_64 --command=bash --file-forwarding com.valvesoftware.Steam @@u %U @@

Run protonhax command inside the sandbox:

$HOME/protonhax/protonhax ls/run/cmd/exec/WHATEVER