Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #22 from jpc0/linuxconfig
Browse files Browse the repository at this point in the history
Fixed some more linux autodetect
  • Loading branch information
shakeyourbunny committed May 18, 2019
2 parents 9dfe12f + 9ce707c commit 37ce285
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RWMS/configuration.py
Expand Up @@ -81,6 +81,8 @@ def detect_steam():
winreg.CloseKey(registry)
elif sys.platform == "darwin":
steampath = os.environ["HOME"] + "/Library/Application Support/Steam"
elif sys.platform == "linux":
steampath = os.environ["HOME"] + "/.steam/steam"
return steampath


Expand All @@ -91,6 +93,8 @@ def detect_rimworld_steam():
rwsteampath = os.path.join(rwsteampath, "steamapps", "common", "RimWorld")
elif sys.platform == "darwin":
rwsteampath = os.path.join(rwsteampath, "steamapps", "common", "RimWorld", "RimWorldMac.app")
elif sys.platform == "linux":
rwsteampath = os.path.join(rwsteampath, "steamapps", "common", "RimWorld")
return rwsteampath

def detect_rimworld_local():
Expand Down Expand Up @@ -124,7 +128,7 @@ def detect_rimworld_configdir():
rimworld_configdir = os.environ[
"USERPROFILE"] + "/AppData/LocalLow/Ludeon Studios/RimWorld by Ludeon Studios/Config"
elif sys.platform == "linux":
rimworld_configdir = os.environ["HOME"] + "/.config/unity3d/Ludeon Studios by Ludeon Studios/RimWorld"
rimworld_configdir = os.environ["HOME"] + "/.config/unity3d/Ludeon Studios/RimWorld by Ludeon Studios/Config"
elif sys.platform == "darwin":
rimworld_configdir = os.environ["HOME"] + "/Library/Application Support/RimWorld/Config"
return rimworld_configdir
Expand Down

0 comments on commit 37ce285

Please sign in to comment.