Defer Office desktop startup
Some checks failed
Build And Publish Docker Images / plan (push) Has been cancelled
Build And Publish Docker Images / build (push) Has been cancelled

Make the Office canvas mount passive so Xpra starts only when the Desktop surface is opened or an official Office document is created/opened.

Track Desktop host visibility to unload hidden frames, stop monitors, dedupe viewport resize work, and set Xpra offscreen mode according to HTTPS support. Add a near-future note for the tunnel memory footprint.

Show Office desktop startup progress

Display a loading message while the Agent Zero Desktop environment is starting or restarting, so the right-canvas Desktop button gives immediate feedback before Xpra finishes waking up.
This commit is contained in:
Alessandro 2026-05-03 02:57:42 +02:00
parent 48977bffc5
commit 2d389af727
8 changed files with 162 additions and 48 deletions

View file

@ -3,7 +3,7 @@ from __future__ import annotations
from helpers.extension import Extension
from helpers.print_style import PrintStyle
from plugins._office import hooks
from plugins._office.helpers import libreoffice_desktop, libreoffice_desktop_routes
from plugins._office.helpers import libreoffice_desktop_routes
class OfficeStartupCleanup(Extension):
@ -14,6 +14,3 @@ class OfficeStartupCleanup(Extension):
PrintStyle.warning("Office runtime preparation reported errors:", result["errors"])
elif result.get("installed") or result.get("removed"):
PrintStyle.info("Office runtime prepared:", result)
desktop = libreoffice_desktop.get_manager().ensure_system_desktop()
if not desktop.get("available"):
PrintStyle.warning("Office desktop startup was deferred:", desktop.get("error") or desktop)