First structure #3
This commit is contained in:
commit
828534c1f5
15 files changed
+646
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# Contributing
|
||||
|
||||
## Development environment
|
||||
|
||||
Create and activate a virtual environment from the repository root:
|
||||
|
||||
```bash
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -e ".[dev]"
|
||||
@@ -0,0 +1,37 @@
|
||||
# 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.
|
||||
Reference in new issue
Block a user