L0laapk3 / FactorioMaps

L0laapk3's FactorioMaps mod
https://mods.factorio.com/mod/L0laapk3_FactorioMaps
Other
122 stars 22 forks source link

Feature Request: Flatpak Steam Support #115

Open Dperrigo18 opened 1 year ago

Dperrigo18 commented 1 year ago

Hi,

I was wondering if it would be possible to have this support for the flatpak version of steam. When running the script it reaches out to where the non-flatpak steam would be but it does not exist.

sh: line 1: /home/dperrigo/.steam/root/steam.sh: No such file or directory

L0laapk3 commented 1 year ago

Hi, I have never heard before what the flatpack version of steam is, but you can specify the path to your factorio executable with the --factorio=PATH flag. If it finds a steam_api64 file, it will attempt to retreive the steam exe location from registry or otherwise fallback to a relative path to factorio exe.

For more information, check the code: https://github.com/L0laapk3/FactorioMaps/blob/master/auto.py#L582-L617

If you feel like anything could be improved, feel free to make a PR.