mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 07:59:34 +00:00
Defer Office desktop startup
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:
parent
48977bffc5
commit
2d389af727
8 changed files with 162 additions and 48 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue