Skip to content

Commit

Permalink
ulwgl_util: update log statements
Browse files Browse the repository at this point in the history
- Don't log an exception when zenity doesn't exist because it's not critical as this launcher was designed to not be fully dependent on it.

- Warn the user for missing tool directories in ~/.local/share/ULWGL
  • Loading branch information
R1kaB3rN committed Mar 15, 2024
1 parent 2816f8c commit 17349d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ULWGL/ulwgl_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def setup_runtime(root: Path, json: Dict[str, Any]) -> None: # noqa: D103
)
raise TimeoutError(err)
except FileNotFoundError:
log.exception("Exception occurred when enabling Zenity")

print(f"Downloading {runtime_platform_value} ...", file=stderr)

Expand Down Expand Up @@ -288,6 +287,7 @@ def _update_ulwgl(

# Directory is absent
if not local.joinpath("reaper").is_file():
log.warning("Reaper not found")
print(
f"Reaper not found\nCopying {key} -> {local} ...",
file=stderr,
Expand All @@ -309,6 +309,7 @@ def _update_ulwgl(

# Directory is absent
if not local.joinpath("pressure-vessel").is_dir():
log.warning("Pressure Vessel not found")
print(
f"Pressure Vessel not found\nCopying {key} -> {local} ...",
file=stderr,
Expand Down Expand Up @@ -343,6 +344,7 @@ def _update_ulwgl(
"Runtime Platform not found",
file=stderr,
)
log.warning("Runtime Platform not found")

# Download the runtime from the official source
setup_runtime(root, json_root)
Expand Down Expand Up @@ -379,6 +381,7 @@ def _update_ulwgl(

# Directory is absent
if not steam_compat.joinpath("ULWGL-Launcher").is_dir():
log.warning("ULWGL-Launcher not found")
print(
"ULWGL-Launcher not found\n"
+ f"Copying ULWGL-Launcher -> {steam_compat} ...",
Expand Down

0 comments on commit 17349d1

Please sign in to comment.