Move office and desktop state under plugin storage

Migrate retired /usr/_office and /usr/_desktop trees from plugin startup into /usr/plugins/<plugin>. Update office document storage, desktop session/runtime paths, and context-scoped screenshots to use the plugin-owned state layout. Add focused tests for retired-state migration and the new path behavior.
This commit is contained in:
Alessandro 2026-05-12 16:21:43 +02:00
parent 7b61ceb241
commit 68c3b8b022
15 changed files with 393 additions and 62 deletions

View file

@ -43,5 +43,7 @@ def _prepare_runtime_safely() -> None:
def _log_runtime_preparation_result(result: dict[str, Any]) -> None:
if result.get("errors"):
PrintStyle.warning("Desktop runtime preparation reported errors:", result["errors"])
elif result.get("installed") or result.get("removed"):
elif result.get("warnings"):
PrintStyle.warning("Desktop runtime preparation reported warnings:", result["warnings"])
elif result.get("installed") or result.get("removed") or result.get("migrated"):
PrintStyle.info("Desktop runtime prepared:", result)