Back to the main site

Lutris and Flatpak-ed Steam? [SOLVED]


#1

I’ve had some issues with Steam package provided by my distro of choice and thus I’ve decided to use Flatpak (package provided by Flathub). And so far it seems that it was a great choice - all my issues with incorrectly linked libraries are gone, super stable and smooth experience.
The only issue I have is that Lutris does not support such setup. While it shows the games from my Steam folder it displays “steam not installed” type of error when I try to start them via Lutris menu.
Is there a way to set Lutris up so it will launch games via Flatpak Steam?


#2

As you already said Lutris doesn’t support Steam over flatpak. But you can try synchronizing your desktop games with Lutris (Lutris->Import Games->Click the Sync button at “Desktop Games”). After a restart it should show your flatpak Steam in your library and enable you to launch it.


#3

that does nothing sadly :frowning: . I’m getting " required runner not installed" message and that’s it.
And the problem is not that the games are not showing up in the library - they do. But I can’t start them via Lutris.

Maybe there’s a way to copy and modify runner existing runner / crate new one that would start the games with
“flatpak run com.valvesoftware.Steam %appid%”
rather than:
“steam %appid%”

Just a thought. I love Lutris and would love to have my whole games library handled by Lutris.

edit: or maybe some sort of symlink would solve the issue?


#4

Does it show these games as installed (If they are not installed the banners will be greyed out). If not, and I think that’s the case for you, it is easier to launch the Steam app itself and then launch the games via Steam and not directly in Lutris.

If Lutris does actually show the games as installed for you, and just launching them does not work, you can try creating a file called steam with the following content:

#!/bin/bash
flatpak run com.valvesoftware.Steam “$@”

then do chmod +x steam and then sudo mv steam /usr/bin/steam. With this method you may be able to launch Steam and steam games, but it still is unsupported. You may run into a lot of issues and unexpected behaviour, which is why I’d still recommend you to just launch Steam and launch your steam games from there.


#5

thx, works like a charm - the missing ingredient for me was passing the variable using “$@” . Didn’t know it is doable this way. THANK YOU!

edit: and as you might have already guessed the games do show up even though I’m using Steam through Flatpak :slight_smile: (which is quite interesting).

edit2: ok, after further investigation it’s a bit weirder than I thought. I’ve noticed not all Steam games I have installed are discovered. It seems only those that I’ve added before switching to Flatpak are being shown (even though I’ve moved all the game data files to the folder Flatpak version uses).
So the question now changed to - is there a way to make Lutris discover the newly added titles as well?
Is Lutris simply reading reigstry.vdf? If so I could just symlink the file from flatpaked version.

edit3: figured it out. I’ve just had to create symlink pointing to directory Flatpak uses in ~/.local/share and now all works as expected. Awesome :slight_smile: !


#6

Thank you too! When I looked for a solution to this I couldn’t figure out how to sync flatpak steam games with Lutris (Which is why I warned about unexpected behaviour). Symlinking .local/share/Steam in the flatpak directory to ~/.local/share/Steam actually worked great!