Commit Graph
12 Commits
Author SHA1 Message Date
BlackAngelTV edc3ef2925 fix(pacman): report database locks and refresh failures
A concurrent manager holding /var/lib/pacman/db.lck, or a partially failed
`pacman -Sy`, surfaced as a generic failure with no explanation. Keep the last
error, tell the user which lock is involved and how to recover, and stop
treating a sync error as success.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-11 20:12:43 +02:00
BlackAngelTV 8658855cca feat(plugin): support generic addon plugins and build Flatpak by default
The Plugins page replaces the Providers tab and lists every plugin alike:
package-manager providers and generic C++ addons, which can be any extension
(UI tweak, helper, ...) via IPlugin (onLoad/onUnload/onUiReady) exported with
the new FWS_ADDON_PLUGIN macro. Flatpak now ships as a plugin built by
default (FWS_BUILD_FLATPAK_PLUGIN=ON), so a plain build is Flatpak-enabled.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-10 18:49:46 +02:00
BlackAngelTV 3fa306c815 perf(search): mark results as installed via a single pacman -Q call
tests / build-test (push) Has been cancelled
Search previously ran one 'pacman -Qi <name>' subprocess per result,
making queries with many matches (e.g. 'discord') take minutes. It now
loads the installed package names once into an in-memory set and uses
that set for the installed lookup.
2026-09-09 20:01:25 +02:00
BlackAngelTV e81f5ee0cd test(flatpak): point flatpak tests at the external plugin sources
Rewires the flatpak unit, integration and plugin-manager tests to compile
against plugins/flatpak-provider, and updates plugin-manager.test to treat
flatpak as a runtime-loaded plugin rather than a registered built-in.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 20:34:50 +02:00
BlackAngelTV 3320e60805 test(flatpak): verify desktop integration in end-to-end test
Extend the live-CLI integration test to assert that installing an app links
its .desktop entry into ~/.local/share/applications, and that uninstalling
cleans the link back up.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 16:54:39 +02:00
BlackAngelTV 6224a94df6 test(flatpak): add end-to-end CLI integration test
Drives the real FlatpakManager against the live flatpak CLI: install a small
app through the provider's own fallback logic, verify it is listed and
flagged as installed in search, run update and refresh, then uninstall. The
test is non-destructive for pre-existing installs and skips when flatpak is
absent.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 15:05:14 +02:00
BlackAngelTV 5cc85cac4a feat(ui): sort search results by provider then name
Group aggregated search results per provider (in query order, pacman
first) and sort each group alphabetically, case-insensitively.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:56:27 +02:00
BlackAngelTV d8a70eabf8 feat(ui): merge duplicate packages across providers
When the same package name comes from several providers (pacman, flatpak,
plugins), collapse the rows into one: the Fournisseur column lists every
provider offering it and installed/updateAvailable are combined, while
the first provider stays the routing default. Applies to search and to
the aggregated installed/updates lists.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:55:56 +02:00
BlackAngelTV 71eb962b00 test: cover flatpak parsing and plugin discovery
Unit-test the flatpak parsers (search rows, installed/update columns)
and the plugin manager end-to-end: built-in registration, runtime
discovery of the sample plugin, enable/disable persistence, reload and
install-hint exposure.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-29 13:34:50 +02:00
BlackAngelTV ad31e5c597 fix(crashes): stop destroying QThread workers while still running
Deleting SearchWorker/ListWorker/InstallWorker from the `finished` ->
`deleteLater` connection aborted the app with
"QThread: Destroyed while thread is still running" (SIGABRT) whenever a
list loaded or a package op finished. The deferred delete raced the
thread teardown because these workers have no event loop to process it
after run() returns.

Wait for the thread to complete (wait() clears the running flag, and by
then run() already emitted finished) before scheduling deleteLater, and
bind every cross-thread signal to the MainWindow context object so the
handlers run queued on the GUI thread instead of inside the worker.

Also drop the intrusive popups (removal confirmation, pacman/sudo
unavailable, empty-search notice) in favour of status bar messages, and
let sudo take the password via -S so no per-op polkit dialog is shown.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-28 15:13:15 +02:00
BlackAngelTV f525d52ab2 feat(pacman): report install origin and size for installed packages
listInstalled only returned name and version, leaving the size and the
origin repository empty for installed packages. Enrich each entry with
its installed size (parsed from pacman -Qi) and the repository it was
installed from (parsed from pacman -Sl), defaulting foreign/AUR
packages to "AUR" so the origin is always visible.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 21:45:38 +02:00
BlackAngelTV e538ed619e test: add unit tests for pacman manager parsing
Cover the pacman -Q output parser: simple lines, hyphenated names,
empty lines and empty input.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-08-27 19:29:35 +02:00