feat(pacman): close the manager holding the database lock instead of waiting
A locked database ended in "Un autre gestionnaire de paquets utilise déjà la base. Attendez la fin de l'autre opération puis réessayez": the app knew something else was running but could not say what, leaving the user to find and close it before retrying by hand. The lock is now inspected: the process holding /var/lib/pacman/db.lck is identified through /proc (with a pgrep fallback for the known managers, whose fd table is unreadable when they run as root), the dialog names it, and one click stops it — SIGTERM first, so pacman aborts its transaction and releases the lock itself, SIGKILL only when it does not react — then the pending operation resumes on its own. A lock whose owner is gone is dropped the same way, and one that disappears while the action is unwinding is retried without a dialog at all. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
1 parent
d8bc17b2aa
commit
fb5c11e153
7 files changed
+517
-28
No files matched your search
@@ -156,6 +156,7 @@ L'interface utilise **Qt6** avec un thème sombre, une **sidebar de navigation**
|
||||
- 📜 **Logs** : journal `/var/log/pacman.log` intégré, avec filtre instantané
|
||||
- 🧩 **Plugins** : liste de tous les plugins (fournisseurs de paquets et extensions), activation / désactivation et rechargement
|
||||
- ⌨️ **Confort** : icône de notification (tray) et raccourcis clavier (Ctrl+F rechercher, Ctrl+R / F5 rafraîchir, Ctrl+U mises à jour, Ctrl+E exporter, Ctrl+Q quitter)
|
||||
- 🔒 **Verrou pacman** : si un autre gestionnaire (pamac, octopi, yay…) tient la base, PacManager l'identifie (nom + PID) et propose de le fermer puis de reprendre l'opération automatiquement — au lieu d'attendre qu'il ait fini ; un verrou résiduel est supprimé de la même façon
|
||||
- 🎨 **Lisibilité** : barre latérale en sections, avec la version installée et le nombre de mises à jour en attente ; actions rapides (rafraîchir, tout mettre à jour) dans l'en-tête, disponibles depuis n'importe quelle page ; listes vides qui expliquent quoi faire
|
||||
- 📤 **Export** : liste de paquets affichée et historique exportables en CSV
|
||||
|
||||
|
||||
Reference in new issue
Block a user