Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umu_util: remove link
Browse files Browse the repository at this point in the history
R1kaB3rN committed Apr 12, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 393bbbf commit 9f56fa1
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions umu/umu_util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tarfile import open as tar_open, TarInfo
from os import environ
from umu_consts import CONFIG, STEAM_COMPAT, UMU_LOCAL, MODE, FLATPAK_PATH
from umu_consts import CONFIG, STEAM_COMPAT, UMU_LOCAL, MODE
from typing import Any, Dict, List, Callable
from json import load, dump
from umu_log import log
@@ -188,11 +188,6 @@ def _install_umu(
root.joinpath("umu-launcher"),
steam_compat.joinpath("umu-launcher"),
)
# Only create the link for native system packages
if not (FLATPAK_PATH or root == Path("/app/share/umu")):
steam_compat.joinpath("umu-launcher", "umu-run").symlink_to(
"../../../umu/umu_run.py"
)

# Runtime platform
setup_runtime(json)
@@ -338,10 +333,6 @@ def _update_umu(
steam_compat.joinpath("umu-launcher"),
)

if not (FLATPAK_PATH or root == Path("/app/share/umu")):
steam_compat.joinpath("umu-launcher", "umu-run").symlink_to(
"../../../umu/umu_run.py"
)
log.console(f"Restored umu-launcher to {val}")
elif steam_compat.joinpath("umu-launcher").is_dir() and val != runner:
# Update
@@ -353,11 +344,6 @@ def _update_umu(
steam_compat.joinpath("umu-launcher"),
)

if not (FLATPAK_PATH or root == Path("/app/share/umu")):
steam_compat.joinpath("umu-launcher", "umu-run").symlink_to(
"../../../umu/umu_run.py"
)

json_local["umu"]["versions"]["runner"] = val

if thread:

0 comments on commit 9f56fa1

Please sign in to comment.