Open Sewer56 opened 1 month ago
We can use flatpak list
to check for the presence of com.github.Matoking.protontricks
.
We can extend our runtime dependency system to automatically check for this.
We can check for the required permissions using
flatpak override --show --user <id>
If the result doesn't contain the user's steam library, we can notify them and prompt them with an autofix:
flatpak override --user --filesystem=<path> <id>
Bug Report
Summary
Reportedly installations of
protontricks
via Flatpak don't work well with the App.Steps to reproduce
What is the expected behaviour?
Things should 'just work', they are however very far from that.
Other information
Normally more advanced users working with
Flatpak
would set an alias like:This allows them to use
protontricks
andprotontricks-launch
from the terminal, as if it was a normal installation. However, this is a shell alias.I believe we don't currently start processes via the shell, therefore even if the user does this, these aliases are not inherited.
In general there are two problems:
Granting Protontricks Access to Steam Libraries
You need to use a program such as
flatseal
to give theFlatpak
install ofprotontricks
permissions to see additional directories, such as installs of games on SDCard.Since we should be striving to 'make modding easy'; we really should be looking into whether it's possible to automate what
flatseal
does here for this very specific common case (Steam Deck == Big Audience).Executing the Flatpak Version of protontricks
Because we should not rely on users having to perform manual installation steps, we should ideally be detecting if
protontricks
is installed viaFlatpak
. We should avoid having to ask users to set an alias. If a user has it installed via flatpak, we should instead invoke that binary.Other Notes
The strategy of what we do here will probably warrant some discussion.