UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug.

This commit is contained in:
Qubasa
2023-12-26 18:02:43 +01:00
parent a7ac0aa1b6
commit e17508702a
11 changed files with 219 additions and 105 deletions

View File

@@ -38,7 +38,7 @@ def inspect_flake(flake_url: str | Path, flake_attr: str) -> FlakeConfig:
]
)
proc = subprocess.run(cmd, text=True, capture_output=True)
proc = subprocess.run(cmd, text=True, stdout=subprocess.PIPE)
assert proc.stdout is not None
if proc.returncode != 0:
raise ClanError(
@@ -47,8 +47,6 @@ command: {shlex.join(cmd)}
exit code: {proc.returncode}
stdout:
{proc.stdout}
stderr:
{proc.stderr}
"""
)
res = proc.stdout.strip()