satisfactorymodding / SatisfactoryModManager

A mod manager for easy installation of mods and modloader for Satisfactory
GNU General Public License v3.0
379 stars 78 forks source link

Can't find lutris install on Debian Trixie #247

Open tohaz opened 2 hours ago

tohaz commented 2 hours ago

lutris is installed via apt. User can start it via command line "lutris". Lutris has EGS Satisfactory installation which runs fine. Except Mod Manager fails to see it and prints "ficsitcli/metadata.go:27 failed to find installations error="failed to run lutris -lj: exit status 1" on startup

SMMDebug-2024-10-14-12-50-53.zip

binary on my system is at /usr/games/lutris

tohaz commented 2 hours ago

my guess SMM tries to run lutris as a user level install(did not checked source code since i did not setup build env) and don't try /usr/games/lutris

$ whereis lutris lutris: /usr/games/lutris /usr/share/lutris /usr/share/man/man1/lutris.1.gz

mircearoata commented 40 minutes ago

This is caused by a combination of issues that we've debugged over on discord for the past couple of days, and just got it to work.

The current release doesn't pass the environment variables to the lutris process, causing it not initialize GTK properly because it is missing the DISPLAY env var. But passing all env vars failed when using the AppImage, because the AppImage prepends its own libraries path to LD_LIBRARY_PATH as well as setting PYTHONHOME to point inside the AppImage, even though it does not contain any python libraries. After handling that by removing AppImage entries from the two env vars when calling lutris, we found that the Epic install handler was also not correctly adding the wine prefix to the Windows paths referenced by Epic.

A fixed build is available in the latest commit's Github Actions artifacts, https://github.com/satisfactorymodding/SatisfactoryModManager/actions/runs/11329649015/artifacts/2053658702