Files
FWS-PacManage/doc
BlackAngelTV aff959bc4b feat(settings): add a dedicated screen for every user preference
The preferences used to be spread across a menu entry and hardcoded paths,
so the user could not see them, let alone change them: where the journal
goes, whether a dropped Flatpak file is accepted, and when the app checks
its own version were all decided in code.

They now live in AppSettings, one model the rest of the app already reads,
and the new Settings screen only writes to it. Nothing keeps a second copy
of a value, so a change is visible everywhere at once — switching directory
moves the journal, unchecking drag & drop makes the window refuse the drop,
blocking the update has the manual check say why instead of silently doing
nothing.

The update block is deliberately limited to PacManager itself: blocking a
system package update is a decision the app has no business making.

The language setting installs a Qt catalogue and asks every widget to
retranslate. The interface is still written in French with QStringLiteral,
so no catalogue ships yet; a language with none is shown in the list but
disabled rather than silently doing nothing, and Qt Linguist stays optional
so the build does not depend on it.
2026-09-28 20:44:21 +02:00
..

Documentation PacManager

Cette documentation est la source du wiki Gitea du projet : chaque fichier est une page autonome, et son nom de fichier est celui de la page wiki (architecture.md → page architecture).

Le README.md à la racine reste la présentation du projet (fonctionnalités, compilation, licence) ; ce dossier décrit comment le logiciel est construit et comment il fonctionne à l'intérieur, pour quelqu'un qui doit le modifier, le déboguer ou brancher un plugin.

Pages

Page Contenu
installation.md Dépendances, compilation, options CMake, installation dans le bureau, fichiers créés sur le système
architecture.md La coupure logique / interface, le flux d'un appel, où ajouter du code
interface.md Les écrans, la navigation, les raccourcis clavier, le thème (tokens du site FWS)
operations.md Le déroulé d'une opération : sudo, verrou pacman, progression, providers multiples
plugins.md Fournisseurs et extensions : contrats, ABI C, emplacements, écriture d'un plugin
magasin-de-plugins.md Le magasin : format du catalogue JSON, installation, sécurité, publication
mise-a-jour.md L'auto-mise à jour : version, méthodes, redémarrage
tests.md Les cibles de test et ce qu'elles couvrent, comment en ajouter
depannage.md Problèmes courants et comment les diagnostiquer

Les fichiers à connaître

Fichier Rôle
include/app-core.h, src/app-core.cpp La logique : providers, workers, historique, plugins, sudo, verrou pacman, auto-update. Aucun widget.
include/main-window.h, src/main-window.cpp Le cadre : barre latérale, en-tête, barre de statut, menus, tray, dialogues, feuille de style.
pages/ Les écrans, un fichier par écran, plus page.h (contrat) et ui-kit.* (widgets partagés).
include/progress-tracker.h La progression d'une opération, lue dans la sortie des outils.
include/plugin-shop.h, src/plugin-shop.cpp Le magasin de plugins et son catalogue.
include/workers.h, src/workers.cpp Les threads de travail (recherche, listes, actions).
plugins/ Les plugins livrés : flatpak-provider, aur-provider, et les deux exemples.

Conventions du projet

Elles sont dans CONTRIBUTING.md (FR) et CONTRIBUTING.en.md (EN) : build, tests, commits en anglais au format Conventional Commits et signés, noms de fichiers en kebab-case, identifiants en anglais, commentaires en anglais. Les agents IA suivent AGENTS.md.