flathub / net.lutris.Lutris

https://flathub.org/apps/details/net.lutris.Lutris
123 stars 24 forks source link

Bypass File Chooser When Running Games from Steam #8

Open Saroufim opened 5 years ago

Saroufim commented 5 years ago

The XDG-Desktop-Portal file chooser is always in the way when launching Steam games from Lutris. Is it possible to somehow bypass it?

gasinvein commented 5 years ago

On our side, the only way to avoid this is to bundle Steam, which would mean re-implementing and maintaining all the complex stuff that Steam flatpak has. We definitely don't want to do this.

Probably if there is (or should be) a way to always open specific URLs (steam:// in this case) with specific program, bypassing the "Open URL" dialog? AFAIK xdg-desktop-portal portal is responsible for that, maybe you should ask its devs?

Saroufim commented 5 years ago

Added it to an already reported issue. Will report back with their feedback.

TingPing commented 5 years ago

Asking the user is a key to it being secure so no you can't bypass that (on the host side users can configure it though).

strycore commented 2 years ago

Steam can't be added to the Flatpak, on SteamOS that would result in 2 Steam installs. Lutris has to be able to interact with the host's install of Steam.

A6GibKm commented 2 years ago

Steam can't be added to the Flatpak, on SteamOS that would result in 2 Steam installs. Lutris has to be able to interact with the host's install of Steam.

I can live without special support for the Flatpak Steam, but one should make sure that all calls to steam are made using the steam:// uri. With this and good use of Gtk.show_uri this should work both with normal steam and flatpak steam. Note that the portal remembers which app was used last time and only asks once.