feat(flatpak): let the user choose which installation to act on
The same application can be present twice — in the user installation and system-wide, or from two remotes or two branches — and flatpak then refuses to act on the application id alone: "Multiple installed refs match 'com.hoptodesk.HopToDesk'". Removing either copy was impossible from the app. A row now stands for the application and carries the copies it is made of, so the details panel lists them and Remove opens one checkbox per copy; the provider gets back the exact target it listed, and naming a ref plus its installation is what makes the call unambiguous. Update gains the same resolution, since it hit the very same refusal, and removing one copy of two no longer takes the other one's launcher entry away with it. The listing that feeds it now asks flatpak for the ref, the branch and the installation, and reads those columns by position: a branch installed from a subdirectory has no version, and dropping that empty column shifted every field after it.
This commit is contained in:
14 files changed
+559
-20
No files matched your search
@@ -138,6 +138,25 @@ mémorisé ; pour forcer un nouveau contrôle, utilisez l'entrée **Vérifier le
|
||||
mises à jour** du menu ou du menu de la barre d'état, ou supprimez la clé
|
||||
correspondante dans `~/.config/Freebuff/PacManager.conf`.
|
||||
|
||||
### « Multiple installed refs match … » ou « Multiple branches available »
|
||||
|
||||
L'application est installée plusieurs fois — en utilisateur **et** en système, ou
|
||||
depuis deux dépôts ou deux branches — et Flatpak refuse alors de la viser par son
|
||||
seul identifiant. C'est ce que montre l'encadré d'erreur.
|
||||
|
||||
Depuis la version qui gère les installations multiples, ce cas se règle dans
|
||||
l'interface : la ligne est unique, la fiche de détail énumère les copies
|
||||
(« utilisateur », « système », le dépôt et la branche), et **Supprimer** propose
|
||||
une case par copie. Si le paquet vient de la recherche ou du nettoyage plutôt que
|
||||
de la liste Installés, la suppression retire toutes ses copies.
|
||||
|
||||
En ligne de commande, la copie se nomme par sa référence complète :
|
||||
|
||||
```bash
|
||||
flatpak uninstall --user com.example.App/x86_64/master # la copie utilisateur
|
||||
flatpak uninstall com.example.App/x86_64/stable # la copie système
|
||||
```
|
||||
|
||||
### La barre de progression semble figée ou fait des allers-retours
|
||||
|
||||
Elle ne devrait plus reculer : la progression est monotone et pondérée par phase
|
||||
|
||||
Reference in new issue
Block a user