BoilR icon indicating copy to clipboard operation
BoilR copied to clipboard

Non-Steam Games installed to Lutris do not show in Boilr

Open Bboy486 opened this issue 1 year ago • 36 comments

As the title says I have installed 2 games from exes in Lutris. They show in Lutris but when I try to see them as a sync option they don't show (actually none of the Lutris games show).

I'm using the Flatpak version of Boilr.

Bboy486 avatar Jul 16 '22 19:07 Bboy486

Is Lutris running in the Background?

NightHammer1000 avatar Jul 17 '22 08:07 NightHammer1000

Nope

On Sun, Jul 17, 2022, 1:20 AM Daniel Hirt @.***> wrote:

Is Lutris running in the Background?

— Reply to this email directly, view it on GitHub https://github.com/PhilipK/BoilR/issues/184#issuecomment-1186442873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD53IKOBY5ARRXXVG2STENLVUO66TANCNFSM53YQ4D3A . You are receiving this because you authored the thread.Message ID: @.***>

Bboy486 avatar Jul 17 '22 23:07 Bboy486

Just to make sure I understand, the problem is that NO games show up from Lutris? Is this on steam deck? Both BoilR and Lutris are flatpaks?

PhilipK avatar Jul 18 '22 08:07 PhilipK

for me boilr doesnt detect lutris (both flatpaks)

KaspianDev avatar Jul 21 '22 13:07 KaspianDev

Same here for me, installed a GOG game in lutris on steam deck, it doesn't show up in boilr.

Both boilr and lutris are flatpaks, lutris is set up as flatpack in boilr's settings.

Heroic and itch.io are working without problems.

Can I somehow provide more diagnostics, if it will help?

vzarytovskii avatar Jul 22 '22 14:07 vzarytovskii

Can someone who has this problem try to run the following command in a terminal/konsole and post the output?

flatpak run net.lutris.Lutris//beta -lo

That command is what BoilR fires to find which Lutris games are installed (when Lutris is installed through a flatpak).

PhilipK avatar Jul 22 '22 14:07 PhilipK

Hmm, I have a bad feeling that this might be a sandboxing issue. When BoilR is run through flatpak it is sandboxed, and that sandbox might not have permissions to query other flatpaks

PhilipK avatar Jul 22 '22 15:07 PhilipK

Can someone with this problem try to download the linux executable version and see if Lutris games are picked up then?

PhilipK avatar Jul 22 '22 15:07 PhilipK

Yup, this is a p̶r̶o̶b̶l̶e̶m̶ limitation with flatpak in general https://github.com/flatpak/flatpak/issues/4046

I guess the only workaround is to use the linux executable at the moment, or we have to find another way of identifying games installed through lutris.

PhilipK avatar Jul 22 '22 15:07 PhilipK

I researched that a bit and it seems it should be possible doing this with flatpak-spawn. It seems lutris is doing something similar. The linked issue https://github.com/flatpak/flatpak/issues/4046 seems to refer to a more special case where they need to (un)install flatpak apps, which isn't the case here.

It seems lutris uses the following permissions for that: https://github.com/flathub/net.lutris.Lutris/commit/b4297846e42ff1e972faae7c0d58d5e6a2c17b83

I am trying to try that out, though I am not really familiar with rust...

lal12 avatar Aug 30 '22 20:08 lal12

@PhilipK Ok it works when I do (in lutris_platform.rs):

let mut command = Command::new("flatpak-spawn");
command.arg("--host").arg("flatpak").arg("run").arg(flatpak_image).arg("-lo").arg("--json").output()?

And adding

  - --talk-name=org.freedesktop.Flatpak
  - --filesystem=xdg-data/flatpak:ro

in flatpak/io.github.philipk.boilr.yml.

I guess doing this only for lutris isn't that useful. Probably that should be integrated in a Command wrapper module and autodetect if ran inside a flatpak sandbox, so it is used for other commands too?

I doubt I could get that done in reasonable time, since I never used rust before. And the code/build/debug cycle with flatpak is quite long.

lal12 avatar Aug 30 '22 21:08 lal12

Great find! I am thinking that I will just make a Rust feature, and then build with that feature enabled when building for flatpak. That way there is no need to "autodetect" anything.

I will get right to it.

PhilipK avatar Aug 31 '22 19:08 PhilipK

I have pushed a new version of BoilR flatpak now. Hopefully it should work there as well. https://buildbot.flathub.org/#/builders/32/builds/107279

PhilipK avatar Aug 31 '22 19:08 PhilipK

Just tested on my own steam deck, and it was able to find lutris with the newest version.

PhilipK avatar Aug 31 '22 20:08 PhilipK

Works on my arch notebook. ~Though not on my steam deck, still debugging why...~ And on my steam deck, but if I launched lutris I have to reboot before Boilr will detect lutris games again.

lal12 avatar Aug 31 '22 20:08 lal12

Just wondering shouldn't the same flatpak-spawn should be prepended to all commands called? E.G. legendary.

The README should probably be updated about the Lutris flatpak compatibility. I also noticed that lutris (at least in the flatpak variant) won't give output with -lo --json while running, so a notice about having to close that before running boilr would be helpful too. (README and Settings or Search View)

lal12 avatar Aug 31 '22 20:08 lal12

Just tested on my own steam deck, and it was able to find lutris with the newest version.

Hi...BoilR isnt showing my Lutris Games on the Steamdeck. What should i put in in the field i marked in my screenshot to get it to work? 2022-09-01 09_08_15-359 791 067 - AnyDesk

nabel0 avatar Sep 01 '22 07:09 nabel0

  1. make sure that you have the newest version of BoilR

  2. Make sure lutris is shut down

On Thu, Sep 1, 2022, 09:09 nabelo @.***> wrote:

Just tested on my own steam deck, and it was able to find lutris with the newest version.

Hi...BoilR isnt showing my Lutris Games on the Steamdeck. What should i put in in this files to get it to work? [image: 2022-09-01 09_08_15-359 791 067 - AnyDesk] https://user-images.githubusercontent.com/50377455/187853546-87465228-276c-4f00-95a6-e46bb095cc88.png

— Reply to this email directly, view it on GitHub https://github.com/PhilipK/BoilR/issues/184#issuecomment-1233841960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEE7DCOBFIRNJYFXLHEUETV4BJDZANCNFSM53YQ4D3A . You are receiving this because you modified the open/close state.Message ID: @.***>

PhilipK avatar Sep 01 '22 07:09 PhilipK

@nabel0 as I wrote above, for me it only works if I never started Lutris after the last reboot. So maybe do a reboot and try again.

lal12 avatar Sep 01 '22 08:09 lal12

  1. make sure that you have the newest version of BoilR 2. Make sure lutris is shut down On Thu, Sep 1, 2022, 09:09 nabelo @.> wrote: Just tested on my own steam deck, and it was able to find lutris with the newest version. Hi...BoilR isnt showing my Lutris Games on the Steamdeck. What should i put in in this files to get it to work? [image: 2022-09-01 09_08_15-359 791 067 - AnyDesk] https://user-images.githubusercontent.com/50377455/187853546-87465228-276c-4f00-95a6-e46bb095cc88.png — Reply to this email directly, view it on GitHub <#184 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEE7DCOBFIRNJYFXLHEUETV4BJDZANCNFSM53YQ4D3A . You are receiving this because you modified the open/close state.Message ID: @.>

Latest Flatpak update is installed and lutris is also shut down. Unfortunately Boilr isn Showing any of my Lutris Installed Games.

Is "net.lutris.Lutris" the correct configuration in the field i marked in my screenshot? Or do i have to pu something else in this field?

nabel0 avatar Sep 01 '22 09:09 nabel0

@nabel0 as I wrote above, for me it only works if I never started Lutris after the last reboot. So maybe do a reboot and try again.

What did you put in the field i marked in my sreenshot?

nabel0 avatar Sep 01 '22 09:09 nabel0

After a complete reboot it works...thnx

nabel0 avatar Sep 01 '22 10:09 nabel0

Looks like the flatpak version of lutris is the one that works.

Bboy486 avatar Sep 02 '22 15:09 Bboy486

I can't get Lutris games to show at all. I am using the flatpak version of Lutris, and the standalone version of Boilr. Have also tried the flatpak version of Boilr and that also doesn't work. Have tried restarting and launching Boilr before doing anything else, and it still doesn't find anything. Having the same issue if I try via Bottles (flatpak). Heroic works fine though (also flatpak).

EllAyling avatar Oct 17 '22 09:10 EllAyling

Hi @PhilipK I also can't get this to work. Using both flatpaks (boilr and lutris), with boilr pointing to the net.lutris.Lutris image, and boilr has permissions to access both the directories where Lutris stores its config and the prefixes. Also tried restarting and loading boilr before lutris. It still cannot find any games from Lutris. Is there any way to get logs from boilr to know what is happening under the hood and try to pinpoint the error?

jacoboqc avatar Oct 17 '22 13:10 jacoboqc

If you run the native version of Boilr it prints its log to the terminal.

On Mon, Oct 17, 2022, 15:39 Jacobo Quintáns @.***> wrote:

Hi @PhilipK https://github.com/PhilipK I also can't get this to work. Using both flatpaks (boilr and lutris), with boilr pointing to the net.lutris.Lutris image, and boilr has permissions to access both the directories where Lutris stores its config and the prefixes. Also tried restarting and loading boilr before lutris. It still cannot find any games from Lutris. Is there any way to get logs from boilr to know what is happening under the hood and try to pinpoint the error?

— Reply to this email directly, view it on GitHub https://github.com/PhilipK/BoilR/issues/184#issuecomment-1280877141, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEE7DDQCAAW7HCZZGIHLCDWDVJHXANCNFSM53YQ4D3A . You are receiving this because you were mentioned.Message ID: @.***>

PhilipK avatar Oct 17 '22 14:10 PhilipK

Is it possible from the flatpak version?

jacoboqc avatar Oct 17 '22 15:10 jacoboqc

Yes, if you the flatpak from the terminal.

flatpak run io.github.philipk.boilr

PhilipK avatar Oct 17 '22 15:10 PhilipK

It does not show any logs at startup, when it queries Lutris for installed games... BTW this is on steam deck, don't know if it makes a difference

jacoboqc avatar Oct 17 '22 15:10 jacoboqc

Also can't see any output in the console, running via flatpak or otherwise. Tried running with the no-ui option but this just downloads images and then exits. Not sure if I am missing a trick.

EllAyling avatar Oct 17 '22 16:10 EllAyling