feat(pkgcheck): vérification des mises à jour au démarrage sans mdp + notif

Le mode headless --check-updates (QT Core uniquement) synchro checkupdates
sans root, classe les paquets critiques (noyau, glibc, systemd, graphics),
envoie une notif urgente via notify-send quand c'est nécessaire, et installe
soi-même son service systemd --user (paramètre actif par défaut) pour
lancer la vérification à chaque ouverture de session. Ajout de tests
d'unité et de doc.

Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTVandCodebuff committed 2026-10-04 20:02:41 +02:00
1 parent ed8185d5fe
commit 65b3496b42
9 files changed
+819 -2

No files matched your search

+12
View File
@@ -168,6 +168,18 @@ public:
// when the update cannot run (no method available).
bool applySelfUpdate(const QString& sudoPassword, QString* error);
// ---- Startup update check ----
// Whether the app installs its login check: a systemd user unit that runs
// `PacManager --check-updates` and pops a notification when updates are
// pending — no window, no sudo password. On by default, since the point is
// to warn the user without them opening the app.
bool checkUpdatesAtStartup() const;
void setCheckUpdatesAtStartup(bool enabled);
// Refreshes the installed unit when the setting is on, in case the binary
// moved since it was written. Idempotent; called once at window startup so
// an update of the app keeps the login check pointing at the real file.
void ensureStartupAutostart();
// ---- pacman's database lock ----
bool databaseLocked() const;
// What currently holds the lock, so the view can name the process it offers