HeroicGamesLauncher icon indicating copy to clipboard operation
HeroicGamesLauncher copied to clipboard

[Wine] Bottles integration

Open imLinguin opened this issue 3 years ago • 2 comments

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)

imLinguin avatar Aug 18 '22 13:08 imLinguin

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

JakobDev avatar Aug 22 '22 09:08 JakobDev

I talked with Mirko, he'll adapt xdg-open protocol to handle argument like bottles-cli would https://docs.usebottles.com/advanced/xdg-open

imLinguin avatar Aug 22 '22 12:08 imLinguin

Closing this for now, will rebase it properly soon

imLinguin avatar Jan 01 '23 12:01 imLinguin