fix(flatpak): per-user install fallback and real error reporting

Installing through a system-wide remote fails under polkit and, when a
remote exists in both installations, flatpak refuses non-interactive
installs ("Multiple remotes have refs matching"). Retry with an explicit
`--user flathub` target, refresh appstream metadata before giving up on
stale refs, and let update/refresh fall back to the user installation as
well. Expose the last command output through IPackageManager::lastError
and show it in a dialog on failure instead of failing silently.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-08-29 13:57:03 +02:00
1 parent 5cc85cac4a
commit 6aef549eb0
7 files changed
+144 -15

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ La recherche interroge **tous les fournisseurs actifs à la fois** : chaque rés
### Ajouter un fournisseur (plugins)
Pacman et Flatpak sont **intégrés**. Pour ajouter un autre gestionnaire (apt, dnf, zypper, ou les dépôts d'une autre distro) sans toucher à l'application :
Pacman et Flatpak sont **intégrés**. L'installation Flatpak ajoute automatiquement le dépôt flathub si besoin et retombe en installation **utilisateur** (sans mot de passe) quand l'installation système échoue (polkit, plusieurs dépôts homonymes) — l'erreur réelle est affichée en cas d'échec. Pour ajouter un autre gestionnaire (apt, dnf, zypper, ou les dépôts d'une autre distro) sans toucher à l'application :
1. Implémentez `IPackageManager` dans un fichier `.cpp` (copiez `plugins/example-provider/example-provider.cpp` comme modèle).
2. Exportez le contrat C ABI avec la macro `FWS_PROVIDER_PLUGIN(MyManager, "id", "Nom", "1.0.0", "Description", "Auteur")`.