protonhax icon indicating copy to clipboard operation
protonhax copied to clipboard

Steam as flatpak

Open T-Quill opened this issue 2 years ago • 2 comments

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

T-Quill avatar Mar 07 '23 21:03 T-Quill

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.

jcnils avatar Aug 02 '23 00:08 jcnils

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

ilolipopi avatar Feb 01 '24 13:02 ilolipopi