38 lines
1.4 KiB
Markdown
38 lines
1.4 KiB
Markdown
# Architecture
|
|
|
|
## Components
|
|
|
|
The application consists of four components:
|
|
|
|
1. **Core:** Shared data models, plugin metadata validation, navigation
|
|
contracts, and frontend-independent application logic.
|
|
2. **GUI:** QML presentation with PySide6 integration.
|
|
3. **TUI:** Textual presentation, including a user-selectable ASCII-safe mode.
|
|
4. **Privileged service:** A system D-Bus service that exposes specific
|
|
operations and checks PolicyKit authorization.
|
|
|
|
The GUI and TUI run as the logged-in user. They do not run as root.
|
|
|
|
## Plugin discovery
|
|
|
|
Plugins are installed and removed by Mageia packages. Each package installs
|
|
a declarative manifest into a package-managed registry location. The
|
|
application reads registered manifests; it does not recursively scan a
|
|
plugin directory.
|
|
|
|
The initial implementation should validate manifests and list plugins
|
|
before loading plugin code or performing system operations.
|
|
|
|
## Privileged operations
|
|
|
|
Only the D-Bus service performs operations that require elevation. It
|
|
validates every request and applies the relevant PolicyKit authorization
|
|
check. Frontend checks are for usability and do not replace service-side
|
|
authorization.
|
|
|
|
## Frontends
|
|
|
|
The GUI and TUI have independent presentation code and share core models
|
|
and service interfaces. A plugin may provide separate GUI and TUI views,
|
|
but both use the same declared metadata and operation contracts.
|