Added bubblewrap / apparmor fixes and diagnostic tools for troubleshooting it on related distros.
This commit is contained in:
@@ -8,6 +8,10 @@ def main() -> int:
|
||||
|
||||
arguments = sys.argv[1:]
|
||||
if not arguments or arguments == ["gui"]:
|
||||
from .container_host import (
|
||||
container_host_error,
|
||||
repair_container_host_after_update,
|
||||
)
|
||||
from .paths import AppPaths
|
||||
from .umu import provision_umu_for_startup
|
||||
|
||||
@@ -16,6 +20,16 @@ def main() -> int:
|
||||
# Older installed releases cannot run a bootstrap step that only exists
|
||||
# in their update payload. Their automatic restart enters here instead.
|
||||
provision_umu_for_startup(paths)
|
||||
container_host = repair_container_host_after_update(paths)
|
||||
if container_host.repair_attempted and (
|
||||
not container_host.ready
|
||||
or container_host.broken_umu_profile_link
|
||||
or container_host.repair_error is not None
|
||||
):
|
||||
print(
|
||||
f"Warning: {container_host_error(container_host)}",
|
||||
file=sys.stderr,
|
||||
)
|
||||
from .ui import run_dashboard
|
||||
|
||||
run_dashboard(paths)
|
||||
|
||||
Reference in New Issue
Block a user