mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-13 01:00:45 +02:00
Sinceb61b4d6, <file>.ft-bak is written only before the first repair. That keeps the first config, but no repair after it had a backup, and the log still said "(backup: <file>.ft-bak)" for each one. The repair writes 0 over a moved panel's old screen number, so a backup is the only record of where the panel was. Restoring the file the log named after a later repair also threw away every Plasma change since the first one: panels, widgets, pinned apps, wallpapers. Repeated repairs are the caseb61b4d6was written for. Tried on a copy: after a first repair, a new top panel on screen 2 with pinned apps, and a drop to one screen, the second repair moved that panel and named a backup that had neither. Before each repair the config now also goes to <file>.ft-bak.last (whole or not at all, like <file>.ft-bak). <file>.ft-bak stays write-once. The log names both, and the docstring and docs/design.md describe both. Both live in ~/.config/frametop, which uninstall.sh already deletes with the settings. The new test repairs twice, with a widget changed between the runs, and checks that .last holds the changed config, .ft-bak the first one, and the log names both. test_repair checks that the first repair writes both and a run with nothing to repair writes neither. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>