Skip to content

Commit

Permalink
umu_run: fix flatpak detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
R1kaB3rN committed Jul 18, 2024
1 parent b3b19d1 commit 845da38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ def main() -> int: # noqa: D103

log.debug("Arguments: %s", args)

if FLATPAK_PATH and root == Path("/app/share/umu"):
if FLATPAK_PATH and root.is_relative_to("/app"):
log.debug("Flatpak environment detected")
log.debug("FLATPAK_ID: %s", FLATPAK_ID)
log.debug("Persisting the runtime at: %s", FLATPAK_PATH)
log.debug("Runtime path: '%s'", FLATPAK_PATH)

# Setup the launcher and runtime files
# An internet connection is required for new setups
Expand Down

0 comments on commit 845da38

Please sign in to comment.