Skip to content

Commit

Permalink
try flatpak-spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
loathingKernel committed Apr 1, 2024
1 parent f2a6531 commit 015a9d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions umu/umu_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,16 @@ def main() -> int: # noqa: D103
thread.join()

# Run
build_command(env, UMU_LOCAL, command, opts)
command = build_command(env, UMU_LOCAL, command, opts)
if os.environ.get("container") == "flatpak":

Check failure on line 362 in umu/umu_run.py

View workflow job for this annotation

GitHub Actions / build (3.10)

Ruff (SIM112)

umu/umu_run.py:362:23: SIM112 Use capitalized environment variable `CONTAINER` instead of `container`

Check failure on line 362 in umu/umu_run.py

View workflow job for this annotation

GitHub Actions / build (3.11)

Ruff (SIM112)

umu/umu_run.py:362:23: SIM112 Use capitalized environment variable `CONTAINER` instead of `container`

Check failure on line 362 in umu/umu_run.py

View workflow job for this annotation

GitHub Actions / build (3.12)

Ruff (SIM112)

umu/umu_run.py:362:23: SIM112 Use capitalized environment variable `CONTAINER` instead of `container`
flatpak_command = ["flatpak-spawn", "--host"]
for name, value in env.items():
flatpak_command.append(f"--env={name}={value}")
command = flatpak_command + command
env = os.environ.copy()
log.debug("%s", command)

return run(command, check=False).returncode
return run(command, env=env, check=False).returncode


if __name__ == "__main__":
Expand Down

0 comments on commit 015a9d6

Please sign in to comment.