The release moved every source into its own layer (core/, app/, pages/,
providers/, preferences/, logging/, archive/, update/, translations/) and
replaced the plugin shop with .fwspacm packages. main added the headless update
check run at login. Both sides are kept, the feature moved onto the new layout:
- core/startup-check.{h,cpp} and its test, wired into the CMake targets the
release renamed (core/startup-check.cpp, startup-check-test);
- app/main.cpp carries the --check-updates branch, ahead of the command line so
the login unit never opens a window;
- the settings menu keeps the "check at startup" toggle, now through tr(), and
translations/en.json gains the new strings;
- doc/mise-a-jour.md keeps the release's version and gains the startup-check
section; the documented test count follows the new target.
The self-update shell script ran mkdir -p $BIN_DIR without checking the
result, so a silently failed directory creation led to the empty path
error later in the install step. Make the script stop as soon as mkdir
fails and print the directory name in the message.
The rule about not mentioning the AI, assistant, Codebuff or any tool
in the commit title and body is easy to miss; make it visually stand
out so it is treated as explicitly as the non-co-authorship rule.
Releases up to 1.4.3 rebuild with whatever toolchain they find, so an
install left on one of them fails on a missing package with nothing
saying why or how to get out of it. The update page now states the
boundary, the manual fallback and what a package-managed install does.
A failure only opened a dialog whose text runs past the screen, and unlike
the success path nothing wrote the build output anywhere, so the line that
names the error was lost as soon as the box was closed.
The changelog and the readme still described the command line, the provider
traces and the Spanish/German/Italian catalogues, so the release notes claimed
more than the branch delivers.
Le mode headless --check-updates (QT Core uniquement) synchro checkupdates
sans root, classe les paquets critiques (noyau, glibc, systemd, graphics),
envoie une notif urgente via notify-send quand c'est nécessaire, et installe
soi-même son service systemd --user (paramètre actif par défaut) pour
lancer la vérification à chaque ouverture de session. Ajout de tests
d'unité et de doc.
Co-Authored-By: Codebuff <noreply@codebuff.com>
The interface, operations and plugin guides still described the old tree,
the log without provider traces and a single extra language, so a reader
could not tell what the app really runs or that a headless command exists.
The window needs a display, which kept the package manager out of a script and
off a headless machine. The command line runs the same operations through
AppCore, before any widget exists, so providers, the pacman lock, the journal
and the history behave exactly as in the window.
Refs #22.
The runtime catalogues only covered English, so a good part of the install
base had no choice but the language the wording was written in. The three new
catalogues cost one text file each, compiled into the binary: nothing else
changes for a translator.
Changing screen is not an operation, and a navigation line per click buried
the entries that matter. Providers now narrate the work itself instead: the
exact command, the fallbacks and the counts, through a Qt-free trace sink that
reaches the journal only, so the status bar stays short.
The 1.6.0 cycle added a settings screen, an application journal, runtime
translations and the .fwspacm plugin format, and reorganised the whole
source tree. None of that was written down anywhere a user or a
contributor would look, so the only record was the commit log.
The changelog describes each change, maps the old folders to the new
ones, and gives a manual test procedure per feature, since the drag and
drop paths have no automated coverage.
It also records the current ctest state: four suites fail, two of them
regressions introduced on this branch.
Every path the documentation named had moved, and the source tree diagram
still showed the two flat folders. The diagram now shows a folder per
domain, and each file is cited where it now lives.
The paths that did not move are left alone on purpose: plugins/ next to the
executable and under ~/.local/share/PacManager/ are where PacManager looks
for plugins at run time, not folders in this repository. The plugin build
command in plugins.md is the one exception, and it is updated to the SDK's
new in-tree location — checked, it still compiles.
pages/ was a flat row of eight screens, so a change to one meant scanning
the whole folder to see what else was in it. The screens now sit in
packages/ (browse, cleanup), overview/ (dashboard, history), system/
(logs, settings) and extensions/ (plugins), with the scaffolding they
all build on — the Page base and the shared widgets — in base/.
src/ and include/ are what is left: the controller the screens delegate
to, its workers and its data model (core/), and the window and entry
point that hold them together (app/). With those moved, src/ and
include/ are empty and go away — a header is now always next to its
source, in a folder named after what it does.
plugins/ held two unrelated things: the host that discovers and installs
plugins, and the plugins themselves. The host moves to plugins/ with the
built-in pacman provider beside it in providers/, where the external
providers already live — so plugins/ is now one thing, and the name says
which.
The external plugin projects only change folder, not layout: providers/
holds aur-provider, flatpak-provider, example-provider and example-addon.
Three self-contained things shared src/ with the rest: the operation
history, the zip reader behind the .fwspacm installer, and the
self-update. Each moves to its own folder — history/, archive/ and
update/ — so a change to one does not have to reason about the others.
The journal and the preferences were two of the many things src/ held, so
"where does this live" meant reading the file to find out. They now have a
folder each — logging/ and preferences/ — with the header next to its
source, the way pages/ has always been laid out.
Flat #include still resolves: the folders join the include path.
include/ held the public plugin interface (package-manager.h, plugin.h,
provider-plugin.h, progress-tracker.h) next to the application's own
headers, so telling them apart meant knowing which four were special.
They move to include/sdk/. The installed layout does not change: make
install still puts them flat in include/PacManager, so a plugin author's
existing -I keeps working. The include path gains include/sdk, so the
flat #include in the sources and in every plugin stays as it was.
The language section still described a .ts compiled by Qt Linguist, which
is no longer how a catalogue is shipped. It now explains the JSON
catalogue, the order they are looked up in, what "system" reads to follow
an FWS install, and how to add a language in one file.
Every label, tooltip, empty state and status message was a bare
QStringLiteral, so nothing could be translated. They now go through tr()
(QCoreApplication::translate from a free helper, QT_TRANSLATE_NOOP where
the code already had it), which is what the catalogues are keyed on.
The journal follows the same rule as the interface: an event, an error and
the two outcomes of a command read in the chosen language. What the tools
print themselves is left alone — that is their output, not our wording —
and so are the qC* developer traces, which keep their technical English.
The language setting was plumbing with nothing behind it: no catalogue
shipped, and every label was a bare QStringLiteral, so picking English
changed nothing.
A catalogue is now a JSON file read as it is, translations/<code>.json,
keyed by the French source string. No Linguist, no lrelease, no build
step: a new language costs one file. The catalogues the application
ships with are compiled into the binary, so the chosen language works
whatever the install layout is, while one dropped into a translations
folder still wins over it.
"System" reads what the FWS install left behind — LC_ALL, LC_MESSAGES,
LANG, then the LANG= line of /etc/locale.conf — so the interface follows
the language chosen at install time without the user configuring anything.
Fixes#16
The shop was a catalogue served over HTTP that the application fetched and
listed, which put a network round trip between a user and a plugin that was
almost always one file they already had. It also had to keep its catalogue
URLs in step with every release, since an entry that pointed at a missing
asset was indistinguishable from one that never worked.
A plugin is now distributed as a .fwspacm package: a ZIP archive holding a
plugin.json manifest and the shared library, which the user drops anywhere
on the window. The file is the distribution, so there is no catalogue to
publish, no network, and no catalogue URL setting to explain. The manifest
tells the user what they are about to run, and its checksum is verified
before anything is written, so a package whose library is not the one it
declares never reaches the plugin directory.
Qt exposes no public ZIP API, so the archive is read directly (central
directory plus zlib for the deflated entries) rather than through a private
header that could move between toolchains. The reader stays in the logic
layer: app-core-test still links no QtWidgets, and a unit test builds its
own archives to check both compression methods and every refusal path.
The stylesheet colours a QMenu, but a dropdown is its own native window:
the margin the platform leaves around it is not part of the widget the
stylesheet paints, and it is filled from the application palette. Left at
the desktop default, that margin shows as a white band above and below the
menu on a light theme.
Giving the palette the window's own surface colour covers it, and has the
useful side effect of dragging tooltips and popups onto the dark theme too.
The colours are the same tokens as the stylesheet, spelled as palette
roles: Qt 6 has no Menu role left, and Window is what the popup margin
uses.
The settings screen was given a sidebar entry, but it is not a place to
browse from: the bar lists where the packages are, and preferences are
where you configure the application. It now opens from the Paramètres menu
and Ctrl+, and nowhere else.
Two consequences of it having no navigation button are handled rather than
left to chance: openSettingsPage() does the work a button would have done
(switch, reload, retitle, journal), and the sidebar unchecks itself on the
way in, since leaving the previous entry highlighted would point at the
wrong screen. Clicking a sidebar entry afterwards selects it as usual.
The preferences used to be spread across a menu entry and hardcoded paths,
so the user could not see them, let alone change them: where the journal
goes, whether a dropped Flatpak file is accepted, and when the app checks
its own version were all decided in code.
They now live in AppSettings, one model the rest of the app already reads,
and the new Settings screen only writes to it. Nothing keeps a second copy
of a value, so a change is visible everywhere at once — switching directory
moves the journal, unchecking drag & drop makes the window refuse the drop,
blocking the update has the manual check say why instead of silently doing
nothing.
The update block is deliberately limited to PacManager itself: blocking a
system package update is a decision the app has no business making.
The language setting installs a Qt catalogue and asks every widget to
retranslate. The interface is still written in French with QStringLiteral,
so no catalogue ships yet; a language with none is shown in the list but
disabled rather than silently doing nothing, and Qt Linguist stays optional
so the build does not depend on it.
The agent guide now sends contributors to CONTRIBUTING.md for the
conventions, and that file did not exist, so the pointer was a dead end
and the conventions lived only in the README, where they sat next to the
feature list.
The guide covers what a contributor needs in one place — the licence
terms that constrain reuse, the build and the four CMake options, the
nine test targets and what each one covers, the code conventions, and the
point of the architecture split that decides where new code goes — plus
the commit rules the agent guide states, including signed commits and no
tool attribution. The READMEs and the doc index now link to it instead of
duplicating the list.
The guide still described the project as an Arch fork with its conventions
in the README, and it said nothing about the commit message, so agents kept
producing commits that named the tool they were run from. Point it at
CONTRIBUTING.md for the conventions, and state the commit rules directly:
signed, no tool attribution, no extra confirmation step.
The chooser answered an empty list when the provider held one copy, and
the caller read that as "nothing was ticked" — so Supprimer on a package
installed once showed "Aucune installation sélectionnée." and removed
nothing, which is most packages.
The row is now removed directly unless there is something to choose
between, and the message about ticking nothing only appears where it can
happen: after the chooser.
The cleanup page grouped its packages by provider but never handed those
providers to the credential gate, which saw an empty list, concluded
nothing was privileged and let the request through: pacman was then
driven with an empty password. It only worked by accident, while sudo's
timestamp was still valid.
Every privileged path now goes through the same door, which the new test
walks one by one — including the two ways of acting on a single copy of a
multi-installed package — and asserts the request is refused, kept
pending for the prompt, and refused again on replay. Nothing is ever
replayed, so no test can run pacman as root.
The same application can be present twice — in the user installation
and system-wide, or from two remotes or two branches — and flatpak then
refuses to act on the application id alone: "Multiple installed refs
match 'com.hoptodesk.HopToDesk'". Removing either copy was impossible
from the app.
A row now stands for the application and carries the copies it is made
of, so the details panel lists them and Remove opens one checkbox per
copy; the provider gets back the exact target it listed, and naming a
ref plus its installation is what makes the call unambiguous. Update
gains the same resolution, since it hit the very same refusal, and
removing one copy of two no longer takes the other one's launcher entry
away with it.
The listing that feeds it now asks flatpak for the ref, the branch and
the installation, and reads those columns by position: a branch
installed from a subdirectory has no version, and dropping that empty
column shifted every field after it.
Installing a .flatpakref looked frozen: flatpak prints two lines and
then stays silent for the minutes a runtime takes to come down, so the
window repeated the same sentence over a stalled bar and the journal
recorded nothing at all.
It has no meter to print — measured here, on a real 658 MB install, it
draws nothing on a pipe nor on a full terminal, only on the deltas the
CDN happens to serve — so the provider now measures the transfer itself:
the bytes landing in flatpak's own staging directory, reported as they
grow. When even those stop, the window takes over and says which step is
running and for how long, in the status bar and in the journal.
Along the way the runner reads with read() instead of stdio so in-place
updates are not held back by a buffer, strips the ANSI escapes some
tools colour their output with (the AUR plugin's own copy is gone), and
turns a rewritten meter line into a journal entry every 10 %.
The gesture is invisible in a screenshot, so every place that has to match
it says it explicitly: the READMEs, the manual desktop entry (which now
carries the MIME types too), the installer doc, the interface and plugin
contracts, the troubleshooting page and the test coverage.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Without them the file manager has no reason to propose "Open with
PacManager", so the drop and the double-click never reach the app.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The window accepts a drop and the desktop entry's %U hands over the file
the user picked, so both gestures end up as the same request. The frame
asks the core which files it can install and never names a format itself;
dropped files queue up because the core runs one operation at a time, and
the search and log fields stop swallowing drops so a file dropped on them
reaches the window.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Dragging a .flatpakref, .flatpakrepo or .flatpak onto the window, or
opening it with the file manager, has to reach flatpak without the user
going through a search. The provider now owns its formats: it claims the
files it handles and builds the matching command, and the core routes the
request to whichever provider recognises it, so a new provider can claim
its own formats the same way.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
The journal is a user-facing feature, so the next release warrants a minor
bump rather than a patch.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
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>