HGL
following-aqua
HGL flatpak
Login into GOG not possible, returns error message
ERROR: [Gog]: GOG login failed to parse std output from gogdl. stdout:
where nothing comes up after stdout.
Furthermore upon launching a json error is noted in the terminal output as well
3 Replies
Solution
following-aqua•3mo ago
It has been working perfectly fine yesterday
following-aquaOP•3mo ago
The log portion under settings in the GOG category also reports this as well
./gogdl error while loading shared libraries: libz.so.1: failed to map segment from shared object
In the store section I am still logged in, just not in the launcher to access the games
-> I found out what it was, somehow something with the heroic flatpak depends on some arbitrary part of the logind part of systemd. Beforehand I was using elogind, yesterday I switched to turnstile+seatd and it broke something with the login for GOG, it could not load the game page, so I logged out, tried to log back in and it didn't work. I swapped back to elogind just now and it works. Does anybody of the devs have a clue on why this could happen in a flatpak environment?sunny-green•2mo ago
Thanks to your tip, IzziVP, I found that it is due to lack of exec permission in the user's runtime dir, which heroic running in flatpak needs as per this comment: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/3015#issuecomment-1712266528 because flatpak's tmp directory is created in
/run/user/USERID/.flatpak/FLATPAK_ID/tmp/
.
(e)logind creates a new tmpfs mount for the user runtime dir with exec enabled, and I believe turnstile just creates a new directory for the user in /run/user inheriting the existing filesystem permissions (which is 'noexec' for /run).
I got around it by creating a turnstile user service that creates a tmpfs mount for the user directory on login.
In ~/.config/service/turnstile-ready/conf:
core_services="mount-rundir dbus import-env"
mount-rundir
is the relevant tmpfs mounting service.
In ~/.config/service/mount-rundir/run:
In ~/.config/service/mount-rundir/finish:
And in /etc/sudoers.d/mount-rundir to permit the sudo's above:
GitHub
GOG login broken · Issue #3015 · Heroic-Games-Launcher/HeroicGam...
Describe the bug Logging in into GOG using the Heroic interface won't work. Add logs (17:12:05) INFO: [Legendary]: Running command: XDG_CONFIG_HOME=/home/chirvo/.config/heroic/legendaryConfig /...