Commit Graph
20 Commits
Author SHA1 Message Date
BlackAngelTV a1d8c96e4e feat(flatpak): link installed apps into the desktop launcher
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>
2026-08-29 16:54:39 +02:00
BlackAngelTV 6aef549eb0 fix(flatpak): per-user install fallback and real error reporting
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>
2026-08-29 13:57:03 +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 bc737d356e feat(ui): browse every provider from one search
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>
2026-08-29 13:34:41 +02:00
BlackAngelTV f355c97940 feat(providers): add flatpak provider
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>
2026-08-29 13:34:36 +02:00
BlackAngelTV a2cef3d256 feat(providers): add provider plugin system
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>
2026-08-29 13:34:29 +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 5df9f2c22a feat(ui): use SVG icons and open package details from dashboard
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>
2026-08-27 21:45:56 +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 9043632ba9 feat(ui): rebuild interface from scratch with dashboard page
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.
2026-08-27 20:39:22 +02:00
BlackAngelTV 0f7c3a6c2b feat(ui): redesign main window with sidebar navigation
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>
2026-08-27 19:29:31 +02:00
BlackAngelTV 5054f04c54 refactor: replace plugin system with native pacman manager
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>
2026-08-27 19:29:24 +02:00
BlackAngelTV 4a773c63ce fix(build): cmake 2026-08-26 20:49:05 +02:00
BlackAngelTV a7f8893bf2 fix: make PluginManager compatible with Windows and Linux 2026-08-24 21:56:29 +02:00
BlackAngelTV de9fbdc7c3 refactor: add abstraction layer for dynamic libraries 2026-08-24 21:56:24 +02:00
BlackAngelTV 7541b29996 feat(ui): add Qt6 graphical interface 2026-08-24 21:13:50 +02:00
BlackAngelTV 6dd3bc7b8f feat: add action history management 2026-08-24 21:13:50 +02:00
BlackAngelTV 829e30750b feat: add dynamic plugin loading via dlopen 2026-08-24 21:13:50 +02:00
BlackAngelTV 776662c9ab feat: add plugin interface and data model 2026-08-24 21:13:50 +02:00