[Wine] Bottles integration
Ability to run games within Bottles. Supporting both Flatpak and bottles binary found in PATH
After this would get merged the new flatpak manifest flag is needed --talk-name=org.freedesktop.Flatpak for ability to launch stuff outside the flatpak container - in our case flatpak version of Bottles.
Bottles flatpak will need to have permissions to read game library in order to work.
This PR adds new script in bin/linux called bottles-wine it basically takes provided arguments in wine like factor and runs the them properly in factor bottles-cli accepts. This allows us to skip the need to implement Bottles handler in gogdl and legendary
Features:
- detect bottles version
- list available bottles
- add button to launch bottles ui for selected bottle (for configuration)
- added button manually run setup for gog games
Use the following Checklist if you have changed something on the Backend or Frontend:
- [ ] Tested the feature and it's working on a current and clean install.
- [ ] Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
- [ ] Created / Updated Tests (If necessary)
- [ ] Created / Updated documentation (If necessary)
Maybe you should ask the Bottles Developers to provide a D-Bus Interface, so giving the Flatpak the Permission to run all commands outside a Sandboy is not needed
I talked with Mirko, he'll adapt xdg-open protocol to handle argument like bottles-cli would https://docs.usebottles.com/advanced/xdg-open
Closing this for now, will rebase it properly soon