Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Learning5Life opened this issue Nov 23, 2021 · 9 comments
Closed

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

Learning5Life opened this issue Nov 23, 2021 · 9 comments
Labels
ext-lutris Lutris specific issue os-linux Linux specific issue

Comments

@Learning5Life
Copy link

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
Copy link
Owner

mmatyas commented Nov 23, 2021

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
Copy link
Owner

mmatyas commented Jan 23, 2022

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

@mmatyas mmatyas closed this as completed Jan 23, 2022
@mmatyas mmatyas added the os-linux Linux specific issue label Jan 23, 2022
@entropicdrifter
Copy link

entropicdrifter commented Mar 30, 2022

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
Copy link
Owner

mmatyas commented Mar 31, 2022

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

@mmatyas mmatyas reopened this Mar 31, 2022
@entropicdrifter
Copy link

entropicdrifter commented Apr 2, 2022

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
Copy link

entropicdrifter commented Apr 2, 2022

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
Copy link
Owner

mmatyas commented Apr 4, 2022

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
Copy link

entropicdrifter commented Apr 4, 2022 via email

@mmatyas
Copy link
Owner

mmatyas commented Apr 5, 2022

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

@mmatyas mmatyas closed this as completed Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ext-lutris Lutris specific issue os-linux Linux specific issue
Projects
None yet
Development

No branches or pull requests

3 participants