Skip to content

Conversation

@ebkr
Copy link
Owner

@ebkr ebkr commented Dec 18, 2025

Steam Deck / Flatpak Support

This PR adds Flatpak building potential to r2modman which allows native installing to the deck (and running in Game Mode).

Status

As of now, this branch can be built to a Flatpak image and it will run.

It has currently broken launching of every other platform. Works great if you're on Steam Deck - not if you're a regular user.

Differences

Flatpak has an absolute ton of restrictions. To work around this for Flatpak-based installs we now do the following:

  • Invoke Steam via steam://run/<appid>.
  • Require a separate launch wrapper script (part of this PR).
    • Arguments are consumed as part of a text file and not passed via CLI.
    • This is again, a limitation of Flatpak and a hacky workaround.

Extra changes

I've taken out the automated file modifications to enable WINEDLLOVERRIDES. Instead we are now making the user supply the override as an environment variable as it's more reliable. This is done as part of the launch arguments copyable string.

Users will be prompted if their launch args don't match. For existing launches they'll already have the file modified so it won't affect older users regardless of the re-prompt.

ebkr and others added 6 commits December 29, 2025 16:01
- Game instructions are now passed as lists
  - All game runners need to support this (currently only SteamGameRunner_Linux.ts does)
- Additional launch arguments setting needs to be reworked to implement a key/value approach
ebkr and others added 5 commits December 29, 2025 16:31
…ntry.

- Refactored env.FLATPAK_ID to a reusable util
- Text fixes
- Better argument conflict detection
- Force enters native setup if args aren't provided on Flatpak (regardless of Proton)
@ebkr ebkr force-pushed the deck branch 2 times, most recently from 36d5fb1 to 3d21727 Compare December 31, 2025 16:01
@ebkr ebkr marked this pull request as ready for review December 31, 2025 16:33
@ebkr ebkr requested a review from anttimaki December 31, 2025 16:35
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

Successfully merging this pull request may close these issues.

2 participants