satisfactorymodding / SatisfactoryModManager

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

Flatpak Support #144

Closed JoshuaFern closed 1 year ago

JoshuaFern commented 2 years ago

I play using Steam in a Flatpak. Just running the appimage doesn't detect my install.

Here's what I currently have to do to get this working:

Proposed solution to avoid all of the above:

Just add the Flatpak search paths to SatisfactoryModManager's game detection code. That way it can manage mods in a flatpak without running in said Flatpak.

mircearoata commented 2 years ago

SMM already checks for Steam flatpak installs (https://github.com/mircearoata/SatisfactoryModManagerAPI/blob/master/src/installfinders/linux/steamFlatpak.ts). Do you have flatpak set to install it to somewhere other than ~/.var/app/com.valvesoftware.Steam? The SMM log (~/.cache/SatisfactoryModManager/logs) would help.

JoshuaFern commented 2 years ago

Thanks for the quick response. You're right that it does seem to be looking for Flatpak Steam, however it doesn't seem to be finding it for me:

2021-12-26 22:11:23:216 [DEBUG] Failed to register win-ca
2021-12-26 22:11:23:227 [INFO]  Set debug mode to false
2021-12-26 22:11:24:892 [ERROR] Command failed: lutris -lj
Trace
Error: Command failed: lutris -lj
    at checkExecSyncError (node:child_process:835:11)
    at Object.execSync (node:child_process:909:15)
    at Object.execSync (node:electron/js2c/asar_bundle:5:12692)
    at Object.e.getInstalls (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:301:7301)
    at Object.e.getInstalls (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:301:5854)
    at e.getInstalls (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:301:5604)
    at file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:2:306797
    at c (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:2:3235899)
    at Generator._invoke (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:2:3235687)
    at Generator.next (file:///home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac/resources/app.asar/dist/electron/renderer.js:2:3236328)
2021-12-26 22:11:24:892 [DEBUG] Legendary is not installed
2021-12-26 22:11:24:893 [DEBUG] Steam is not installed
2021-12-26 22:11:24:921 [DEBUG] Steam-flatpak is not installed

Steam is certainly installed in the default directory. Clicking the "generate debug info" text in the error message crashes the application:

Satisfactory-Mod-Manager.AppImage installed in /home/jdf/.cache/appimage-run/d9b7884bc6ee2e733f79a49125a25804c0fd926597759f655e544cceebf80eac
02:57:41.817 › Checking for update
02:57:42.977 › Update for version 2.7.3 is not available (latest version: 2.7.3, downgrade is disallowed).

(satisfactory-mod-manager-gui:712859): GLib-GIO-ERROR **: 02:57:46.351: No GSettings schemas are installed on the system
[1]    712857 trace trap (core dumped)  appimage-run Satisfactory-Mod-Manager.AppImage

This was all run using NixOS appimage-run command. NixOS is a unique environment and that might be a factor in the issue we see here.

michaelmassee commented 2 years ago

The Modmanger ist running just fine with Steam not in Flatpack. Great Thanks for providing a Linux Version. Nice Job !

JoshuaFern commented 1 year ago

This has gone stale, closing.