Make the second menu entry an action instead of a report

"Apply now" had nothing to do in the normal case. Enabling applies, the
watcher handles everything installed afterwards, and the settings and
applications screens apply on their way out - so pressing it answered
"already applied to 14 applications" and that was the whole interaction.

It is now "Re-apply everything": the state is taken back and written again
from scratch. That is the answer to the question the status block can raise
but nothing could act on - Steam showing as not patched after a client
update, an application that drifted, a flag file edited by hand.

Uninstalling an application used to leave the entry shadowing it behind, in
the user home where the package manager cannot see it, offering to start a
program that is gone. A plain apply only looks at what exists now, so the
watcher never noticed either. Those are removed on every apply now, not just
when rebuilding.
This commit is contained in:
Felitendo committed 2026-08-16 20:44:19 +02:00
1 parent 9896260636
commit 4004023297
9 files changed
+90 -20

No files matched your search

+2 -1
View File
@@ -59,7 +59,7 @@ all of them, in a way that survives the next package upgrade, is not:
Applications pick this up the next time they are started.
[1] Turn autoscroll on or off
[2] Apply now
[2] Re-apply everything
[3] Applications
[4] Settings
[q] Quit
@@ -170,6 +170,7 @@ Run this before uninstalling the package.
| `… enable` | turn it on, apply, start watching |
| `… disable` | turn it off and put everything back |
| `… apply` | apply to anything new (this is what the watcher calls) |
| `… apply --rebuild` | take everything back and apply it again, to repair a mess |
| `… status` | what is covered |
| `… list` | every application that was found and how it is handled |