diff --git a/ulwgl_util.py b/ulwgl_util.py index f0eb401b..e3b8551a 100644 --- a/ulwgl_util.py +++ b/ulwgl_util.py @@ -91,10 +91,15 @@ def setup_ulwgl(root: Path, local: Path) -> None: local.joinpath("ulwgl-run").symlink_to("ulwgl_run.py") # Runner - print(f"Copying ULWGL-Runner -> {local} ...", file=stderr) + steam_compat: Path = Path.home().joinpath( + ".local/share/Steam/compatibilitytools.d" + ) + steam_compat.mkdir(parents=True, exist_ok=True) + + print(f"Copying ULWGL-Runner -> {steam_compat} ...", file=stderr) copytree( root.joinpath("ULWGL-Runner").as_posix(), - local.joinpath("ULWGL-Runner").as_posix(), + steam_compat.joinpath("ULWGL-Runner"), symlinks=True, ) @@ -188,6 +193,10 @@ def setup_ulwgl(root: Path, local: Path) -> None: and val != json_local["ulwgl"]["versions"]["runner"] or not local.joinpath("ULWGL-Runner").is_dir() ): + steam_compat: Path = Path.home().joinpath( + ".local/share/Steam/compatibilitytools.d" + ) + # Runner print(f"New version for {key}\nUpdating to {val} ...", file=stderr) @@ -198,7 +207,7 @@ def setup_ulwgl(root: Path, local: Path) -> None: # Prefer recreating the symbolic link within this dir copytree( root.joinpath("ULWGL-Runner").as_posix(), - local.joinpath("ULWGL-Runner").as_posix(), + steam_compat.joinpath("ULWGL-Runner"), symlinks=True, )