Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Set env var for sandboxing legendary
Browse files Browse the repository at this point in the history
- Set XDG_CONFIG_HOME to legendary config dir for making binary work
  • Loading branch information
redromnon committed Aug 6, 2023
1 parent abda8d3 commit 5007725
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion func/configpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def is_flatpak_installed(application_id: str) -> bool:

heroicconfigpath = os.path.join(actual_config_path, "heroic/config.json")

legendaryinstalledpath = os.path.join(actual_config_path, "legendary/installed.json")
legendaryinstalledpath = os.path.join(actual_config_path, "heroic/legendaryConfig/legendary/installed.json")

legendaryconfigdir = os.path.join(actual_config_path, "heroic/legendaryConfig")

goginstalledpath = os.path.join(actual_config_path, "heroic/gog_store/installed.json")

Expand Down
4 changes: 4 additions & 0 deletions func/createlaunchfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ def createlaunchfile(gamename, appname, gamejson, gametype):
#Launches from {simplified_gamename}.sh
""")


#Epic Games Format (Track wineserver before running post-game sync)
epic_script = f"""
#Launch game
export XDG_CONFIG_HOME={configpath.legendaryconfigdir}
{cloudsync}
{environmentString} {gameString}
Expand All @@ -109,6 +111,8 @@ def createlaunchfile(gamename, appname, gamejson, gametype):
sleep 3
done
"""


#GOG format (without cloud sync check)
gog_script = f"""
Expand Down

0 comments on commit 5007725

Please sign in to comment.