mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.19k stars 106 forks source link

Bug: Pegasus (flatpak) unable to detect Lutris games #913

Closed Learning5Life closed 2 years ago

Learning5Life commented 2 years ago

The issue

Upon a fresh install of Pegasus, no Lutris games were detected, only games in my Steam library. These Lutris games included standalone games and games from GOG, but installed in my own games directory and not the usual ~/GOG Games directory.

System info

Pop!_OS 21.04

Pegasus version

fff1a5b (flatpak)

Pegasus log

Attached bug report: lastrun.log

Love this bug report template by the way. It makes it so much easier for me to provide good information.

mmatyas commented 2 years ago

Hi, yes, at the moment you can't add additional GOG directories from the settings menu, but you can do it by manually editing the settings file.

In the case of Flatpak, that should be at /home/yourname/.var/app/org.pegasus_frontend.Pegasus/config/pegasus-frontend/settings.txt. Open that in some plain text editor and the following to the bottom:

providers.gog.directories:
  /home/yourname/Game1/
  /home/yourname/Game2/
  /home/yourname/GameN/

Edit the paths to your liking, just make sure each directory line starts with at least one space. Pegasus will look for start.sh files in the directories you add this way.

mmatyas commented 2 years ago

I guess this is solved, but feel free to report if there are still some issues.

entropicdrifter commented 2 years ago

I'm seeing this same issue in Mint 20.3 Lutris games are not detected by the Flatpak version of Pegasus at all.

I prefer to launch games using Lutris so I can guarantee gamemode is active along with other optimizations.

Please reopen this bug. Your comment was a workaround for the GoG issue but the bug with detecting Lutris games from the Flatpak version still exists.

mmatyas commented 2 years ago

Ok; @entropicdrifter could you also attach a log file of the Flatpak version?

entropicdrifter commented 2 years ago

Sure:


Qt: Session management error: None of the authentication protocols specified are supported
[i] Pegasus 9bd055a (2022-03-28)
[i] Running on KDE Flatpak runtime (x86_64, xcb)
[i] Qt version 5.15.3
[i] Program settings loaded (`/home/<my-username>/.var/app/org.pegasus_frontend.Pegasus/config/pegasus-frontend/settings.txt`)
[i] Found locale `ar`
[i] Found locale `bs`
[i] Found locale `de`
[i] Found locale `en-GB`
[i] Found locale `en`
[i] Found locale `es`
[i] Found locale `fr`
[i] Found locale `hu`
[i] Found locale `ja`
[i] Found locale `ko`
[i] Found locale `lt`
[i] Found locale `nl`
[i] Found locale `pt-BR`
[i] Found locale `ru`
[i] Found locale `zh-TW`
[i] Found locale `zh`
[i] Locale set to `en`
[i] Found theme `Pegasus Grid` at `:/themes/pegasus-theme-grid/`
[i] SDL version 2.0.16
[w] Requested theme `:/themes/pegasus-theme-grid` not found, falling back to default
[i] Theme set to `Pegasus Grid` (`:/themes/pegasus-theme-grid/`)
[i] Gamepad: Connected device 0x0 (Xbox 360 Controller)
[i] Gamepad: Connected device 0x1 (Xbox 360 Controller)
[i] Gamepad: Connected device 0x2 (Steam Virtual Gamepad)
[i] Gamepad: Connected device 0x3 (Steam Virtual Gamepad)
[i] Metafiles: No metadata files found
[i] Metafiles: Finished searching in 0ms
[i] Media: Finished searching in 0ms
[i] Logiqx: Finished searching in 0ms
[i] Lutris: No installation found
[i] Lutris: Finished searching in 0ms
[i] Skraper Assets: 0 assets found
[i] Skraper Assets: Finished searching in 0ms
[i] Favorites: Finished searching in 0ms
[i] Playtime: Finished searching in 0ms
[i] Game list post-processing took 0ms
[i] 0 games found
[i] Closing Pegasus, goodbye!
entropicdrifter commented 2 years ago

So far I've tried launching it with a few different Flatpak filesystem permissions set, but none of them seem to work. My Lutris pga.db file is located at ~/.local/share/lutris, which is one of the folders the current code should be checking per this function, so I really have no idea why it's not being scanned.

I've now also tried explicitly granting filesystem permissions for the exact ~/.local/share/lutris folder in Flatseal and it still isn't finding it.

mmatyas commented 2 years ago

Well I've tried it and I can reproduce the issue, but debugging with Flatpak is a pain... The No installation found happens when Pegasus thinks <commondatadir>/lutris does not exist, where commondatadir is the value of XDG_DATA_DIRS, which is normally a list containing ~/.local/share/. And indeed, looking at the env vars in the sandbox, ~/.local/share/ is not on the list, unlike the regular desktop. I'll try to manually add it.

entropicdrifter commented 2 years ago

Thanks for looking into this, I really appreciate it. I've never published a flatpak myself but I definitely know how annoying sandboxes can be.

On Mon, Apr 4, 2022, 12:40 PM Mátyás Mustoha @.***> wrote:

Well I've tried it and I can reproduce the issue, but debugging with Flatpak is a pain... The No installation found happens when Pegasus thinks /lutris does not exist, where commondatadir is the value of XDG_DATA_DIRS, which is normally a list containing ~/.local/share/. And indeed, looking at the env vars in the sandbox, ~/.local/share/ is not on the list, unlike the regular desktop. I'll try to manually add it.

— Reply to this email directly, view it on GitHub https://github.com/mmatyas/pegasus-frontend/issues/913#issuecomment-1087777239, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBKSLS3GAKC6WPV7V3P6CLVDMLO5ANCNFSM5IT7TESQ . You are receiving this because you were mentioned.Message ID: @.***>

mmatyas commented 2 years ago

Ok, tested and this should be fixed in the latest Flatpak release. Thanks for the report!