Installing a .flatpakref looked frozen: flatpak prints two lines and then stays silent for the minutes a runtime takes to come down, so the window repeated the same sentence over a stalled bar and the journal recorded nothing at all. It has no meter to print — measured here, on a real 658 MB install, it draws nothing on a pipe nor on a full terminal, only on the deltas the CDN happens to serve — so the provider now measures the transfer itself: the bytes landing in flatpak's own staging directory, reported as they grow. When even those stop, the window takes over and says which step is running and for how long, in the status bar and in the journal. Along the way the runner reads with read() instead of stdio so in-place updates are not held back by a buffer, strips the ANSI escapes some tools colour their output with (the AUR plugin's own copy is gone), and turns a rewritten meter line into a journal entry every 10 %.
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 AGENTS.md : commits en anglais au format
Conventional Commits, noms de fichiers en kebab-case, identifiants en anglais,
commentaires en anglais, tests avant de considérer une tâche terminée.