redromnon/HeroicBashLauncher

[Feature Request] Compatibility with Steam Flatpak

Bu156 opened this issue · 6 comments

Bu156 commented

Is your feature request related to a problem? Please describe.
My setup (Heroic and Steam in Flatpak) doesn't seem to work. My guess is that this is because one Flatpak app cannot start another without tweaking.

Describe the solution you'd like
A wiki page on how to make this setup work. I'd be willing to contribute, but I don't really know where to start in terms of solving this.

Describe alternatives you've considered
Another option could be integrating a fix in the script, but if the user can fix it easily themselves, I think that'd be preferable.

Additional context
Many people use Steam and Heroic in Flatpak due to compatibility and ease of use. Therefore I think this is a use case which should be supported.

Since the Flatpak version of Steam has a different path, I'll have to make changes to the code. I've only implemented the Steam Runtime path for Flatpak for now. I'll let you know whether a Wiki page will be needed.

Now Steam Flatpak needs access to the Heroic folder and the Bash Launcher to get things going. This requires manual tweaking by the user using Flatseal.

Thus it's better you use the non-Flatpak variant of Steam.

inffy commented

I'm running Fedora Silverblue and tried to get this working on it but it seems the AddtoSteam.sh looks for the userdata in the normal non-Flatpaks directory which isn't of course available.

Tried to add permissions to the mentioned folders (heroic and BLs) but the main issue seems to be teh AddToSteam.sh.

I'll let you know once I get working on supporting Steam Flatpak

So I've tried to implement the Steam Flatpak feature in Heroic. I have both good and bad news.

The good news is that the games are being added with artwork without any issues.

The bad news is none of the games will launch due to permission issues. You will have to explicity set permissions to the Heroic Bash Launcher location and probably even the game locations too.
And if you're using Heroic Flatpak, it's a bigger problem because Heroic will be sandboxed.

I'm still working on it but this feature will require the user to do manual tweaks.

You can test this build - https://github.com/redromnon/HeroicBashLauncher/actions/runs/2569678572 in the meantime.
Only launching games is the problem here.