Skip to content

v0.4.0

Choose a tag to compare

@parsasafaie parsasafaie released this 07 Nov 08:19
· 2 commits to main since this release

SLPM 0.4.0

Install by name no longer requires knowing the exact name: the Install-a-package
box in Advanced Mode now searches all three managers as you type.

What's new

Repository search

  • The apt repositories, the Snap store and the Flatpak remotes are searched as you
    type, whichever manager is selected. Matches appear as suggestions under the
    input with a short description each.
  • Picking a suggestion fills in the exact name to install — for Flatpak, the app
    id, with the human-readable name shown next to it. Typing "visual studio" finds
    the snap; typing "gimp" finds org.gimp.GIMP.
  • The searches are read-only queries against the same repositories the installs
    pull from, and they stay Advanced Mode only, like the install they feed. A
    manager that is not installed answers an empty list rather than an error. A
    Persian query works where the store supports one.

Security notes

A search query is free text, but it is checked before any command is built: a term
starting with a dash — which the underlying tools would read as an option (an -o
would reach apt-cache as one) — is refused at the endpoint on every manager's
route, and the length is capped at 100 characters. The same check now guards the
apt search that existed before.

Fixed

  • The suggestion buttons and the dialog choice buttons took their text color from
    the browser's default (black) instead of the theme, which made them unreadable in
    the dark theme. They now follow the theme like every other control.

Upgrading

Stop the running server, verify the new file against the published checksums, swap
and run:

kill "$(cat ~/.cache/slpm/server.pid)"
sha256sum --ignore-missing -c SHA256SUMS.txt
chmod +x SLPM-Desktop_0.4.0-x86_64.AppImage
./SLPM-Desktop_0.4.0-x86_64.AppImage

Your settings and installed software under ~/.cache/slpm are preserved. The
in-app version pill offers the same commands for the image you are actually
running.

Files

File What it is
SLPM_0.4.0-x86_64.AppImage Dashboard, opened in your browser (bundled Python)
SLPM-Desktop_0.4.0-x86_64.AppImage Dashboard in a native desktop window (host python3 + WebKitGTK)
SHA256SUMS.txt SHA-256 of both images

Testing

selftest.py is green: 372 checks, including new ones for the search term
validator, the tool-output parsers, and the endpoints' Advanced Mode and
malformed-query refusals.

Full changelog: v0.3.1...v0.4.0