The Logs screen only offered /var/log/pacman.log, which is unreadable
without root and says nothing about what the app itself did. Let the user
switch between that file and the new application journal, refresh it live
while an operation runs, and record navigation and dialog events so the
screen tells the whole story.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The app kept no durable trace of what it ran: LogManager existed but was
never instantiated, so only a handful of console-only qCInfo calls survived
a session. Wire it up as a process-wide journal that captures each command's
raw output next to UI, search, plugin and update events, and funnel every Qt
log message into it, so a failure can still be diagnosed after the fact.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
A minimal Arch system has no cmake, no compiler and no qt6-base, so the
self-update used to fail or fall back to the releases page. The update
now asks pacman what is missing, installs it through sudo with the
password typed in the update dialog, then resumes the build.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Installing a plugin meant compiling a shared library and dropping it in a
directory by hand. The shop reads a catalogue (plugins/catalog.json, one
entry per plugin with its description and download URL), lists what can be
installed next to what already is, and installs an entry into
~/.local/share/PacManager/plugins — the directory the registry already
scans — so a plugin becomes usable without root rights and without a
restart. Installing runs third-party code in this process, so the shop only
fetches what the user picked, checks the announced sha256 before writing
anything, and a removal deletes only the files the shop wrote itself.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
pacman restarts its "(1/24)" counter at every phase of a transaction, so the
bar was fed 0 percent, 100 percent, 0 percent again a few times per update —
and Flatpak/AUR buffered their whole output, which left it indeterminate for
the entire run. A shared ProgressTracker now folds every counter, file
percentage and package step into one value that only moves forward, the
providers stream their output as it is produced, and each provider owns a
slice of the bar so a multi-provider update keeps advancing. pacman -Qu is
cached like the other read queries, so the sidebar badge, the updates screen
and the update button share a single process.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The window carried a palette of its own, so the desktop app and the site
looked like two different products. The stylesheet now uses the website's
tokens (slate surfaces on a #0f172a page, sky-blue accent, serif headings,
pill-shaped badges); the site's rgba() borders are pre-blended because a Qt
stylesheet only takes solid colours, and plain widgets are left transparent
so the page glow shows through them.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
All the business logic now lives in AppCore (providers, workers,
history, plugins, sudo and pacman-lock handling), freed from any widget
so it runs headless and is testable on its own. The Qt window becomes a
thin frame around one file per screen under pages/, wired through a
common Page contract and a shared ui-kit. CMake gains the app-core-test
target, which links Qt Core only to enforce the headless guarantee.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Trusting the version compiled into the binary alone made the app report a stale
release whenever the build predated a version bump: `version` is read at
configure time, and bumping it is not by itself a reason to configure again, so
`cmake --build` kept the previous number compiled in while the marker it
installed next to the binary said otherwise. The update was then offered again
even though it had just been applied.
The version file is now a configure dependency, so a bump reconfigures the
build, and the reported version is the newest of the two sources, so neither
side can drag the app backwards.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
Cards now read as raised surfaces with a hairline border, the four dashboard
metrics carry a coloured edge, the sidebar is split into named sections and
shows the installed version, and the two most used commands sit in the header
so they are reachable from every page. An empty listing explains itself
instead of showing a bare table header, and the sidebar highlights the updates
entry with the pending count.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
The button was created disabled and nothing ever re-enabled it, so the browse
toolbar offered a dead action while the same command stayed reachable from the
dashboard and the tray.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
A result page inserted its rows one setItem() at a time, so the viewport
repainted per cell and, on the browse page, the row that became "current"
fired the pacman queries behind the details panel in the middle of the fill.
The fill now runs with updates disabled and the table's signals muted,
released just before the row the user actually sees is selected.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
One click used to spawn the same pacman processes several times: a search
runs `pacman -Q`, the Installed page runs `-Q`, `-Qi` and `-Sl`, and the
dashboard re-runs them on every visit. Their output is now reused for a few
seconds and dropped as soon as a transaction changes the package set, so the
readings stay correct while a handful of subprocess spawns disappear from each
interaction.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
The checkout path installed with the build's configured prefix instead of
installing into the directory holding the running copy, so the binary in use
and its version marker both stayed at the old release: the app kept reporting
that version and offered the same update again at every launch.
Every method now stages and installs into the running binary's directory, the
install step writes the release it just installed next to the binary, and
currentVersion() reads the version compiled into the running build first,
falling back to the marker file. The repo-root `version` file stays the single
source of truth: CMake compiles it in.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Leftovers pile up on a machine: dependencies that no installed package
requires any more, and installs coming from the AUR or manual builds that the
sync databases know nothing about. The new Nettoyage page lists both (orphans
first, since they are the ones that can be removed in bulk), shows which
provider reported each row, and frees the space held by the caches: paccache
(or pacman -Sc) and flatpak's unused runtimes.
Cleanup is an optional capability of IPackageManager, so providers that only
install packages keep working unchanged.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
A maintenance page is about to be inserted between two existing entries, and
the numeric ids were duplicated across the sidebar, the dashboard shortcuts,
the menu bar and the keyboard shortcuts. Naming them keeps those entry points
in sync.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Copying over the executable the update is running from fails with ETXTBSY, so
the self-update aborted after a successful build and left the user to restart
by hand. Installing through a rename, then handing over to the new build, lets
the update complete on its own.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Self-update assumed a conventional install prefix (silently reinstalling into
~/.local when the binary lived elsewhere) and needed a release tarball to do
anything. Pick the strategy from what the machine actually has -- a local
checkout, git+cmake+compiler for a clone, the prebuilt archive, or the release
sources -- and always write the fresh binary next to the running one, building
in a temp directory so sudo is only needed for the final copy.
Bundles the UI work that depends on it (tray, shortcuts, log filter, CSV
exports, cached package details), the structured log categories, and the new
test targets (update-manager, AUR, plugins) wired into CTest.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
The update dialog offered a disabled button when running from an install prefix without a source checkout, and the version file lagged behind the release tag. Add a tarball download + rebuild + reinstall path to the same prefix (sudo only for system prefixes) and bump the version file to 1.3.1.
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>
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.
Adds an UpdateManager that queries the Gitea releases API once per day,
stores the last check state in a JSON file, and offers to pull + rebuild
the source repository when a newer version exists. The running binary is
left untouched until the next launch.
Also sets the app version from the version file at build time instead of
the hardcoded 1.0.0, and copies the version file next to the executable.
Removes FlatpakManager from the built-in sources and from MainWindow's
registration, so only pacman ships inside the binary. Flatpak is now
provided exclusively by the external plugin.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Moves FlatpakManager out of the core sources and adds the plugin entry
point exporting the provider-plugin C ABI, so Flatpak can be built and
loaded as an external plugin instead of a compiled-in provider.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Search now publishes provider results in small batches as they arrive, so
the first matches appear in the table while slower providers keep running.
The bottom status-bar bar is now a determinate indicator: pacman output is
streamed live and its (n/Total) package counter is parsed into a percentage
that fills the bar during install/update, instead of an indeterminate spinner.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
When a flatpak app is installed through the app, its .desktop entries and
icons are now symlinked into the user's standard XDG dirs
(~/.local/share/{applications,icons}), which every desktop scans by default.
This makes flatpak apps appear in any launcher (wofi, GNOME, KDE...) the same
way a pacman install would, without relying on XDG_DATA_DIRS or any
desktop-specific configuration. The links are removed on uninstall, and a
refresh re-links every installed app so ones installed before this feature
(or outside the app) self-heal.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Search results now report whether each app is already installed or has a
pending update, like pacman does with its [installed] marker, so the UI no
longer shows "Disponible" for apps that are already managed. Install is also
idempotent (already-deployed apps short-circuit) and skips the doomed bare
retry when both a system and a user flathub remote make the ref ambiguous.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Installing through a system-wide remote fails under polkit and, when a
remote exists in both installations, flatpak refuses non-interactive
installs ("Multiple remotes have refs matching"). Retry with an explicit
`--user flathub` target, refresh appstream metadata before giving up on
stale refs, and let update/refresh fall back to the user installation as
well. Expose the last command output through IPackageManager::lastError
and show it in a dialog on failure instead of failing silently.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
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>
Search now queries all active providers at once and each row shows its
origin in a Provider column; installed and updates pages are aggregated,
and install/remove/update are routed to the owning manager automatically.
Add a Providers page listing built-in and plugin managers with
enable/disable, plugin rescan, and an install-tool button that pulls the
missing backend through pacman (e.g. flatpak).
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Implement IPackageManager over the flatpak CLI: search, installed list,
updates, install/remove/update and appstream refresh. Runs per-user so it
needs no sudo. Parsing is exposed as statics so it can be unit-tested
without the flatpak binary.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Introduce a registry (PluginManager) that owns package managers and can
load additional providers at runtime from shared-library plugins dropped
in a plugins directory. Providers declare their metadata and a factory
through a C ABI (provider-plugin.h); requiresPassword() tells the UI
whether a provider needs sudo. Ships a sample external plugin as a
template for adding new backends.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Cards and tables no longer draw a border or background so content sits
directly on the page background, matching the requested flat look.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
Adopt the embedded SVG icon set across the interface: sidebar links,
action buttons, stat cards, search/filter fields, table status cells
and badges, replacing the inline emoji glyphs. Inline emoji inside
status-bar and history text are dropped since an SVG cannot be embedded
mid-sentence.
Also let a click on a package in the dashboard's recent activity open
its details on the Installed page with remove/update actions available,
by auto-selecting the package after the list loads.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>
Redesign the whole UI around a dashboard with stat cards, quick
actions and recent activity, a header bar with contextual page
titles, and a denser table-based package listing with an instant
local filter on the installed page and a filterable history table.
Register the std::vector<PackageInfo> metatype so worker results
actually reach the UI thread instead of being dropped silently.
Replace the single-screen layout with a sidebar and stacked pages:
Search, Installed, Updates, History and Logs. Also fix the update-all
and refresh actions, which previously called install with an empty
package name instead of running the proper pacman commands.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
Remove the dynamic plugin loader (pacman/apt/pkg/universal) and drive
the UI directly through PacmanManager. Rename sources and headers to
kebab-case to match the project's file naming convention.
Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>