Skip to content

v0.3.1

Choose a tag to compare

@parsasafaie parsasafaie released this 19 Oct 20:05

SLPM 0.3.1

I read the whole codebase line by line and wrote down everything that looked wrong
before touching a thing. This release is that list, fixed. Nothing here changes
what SLPM looks like; it changes what happens when something goes wrong, which is
where most of the bugs were hiding.

Security notes

The downloader could be bounced to your own machine. It checked the URL you
gave it against the list of blocked addresses, then followed redirects without
checking again — so a public link could bounce it to 127.0.0.1 or to a router on
your LAN, and whatever came back landed in your Downloads folder. Every hop is
checked now.

Fixed

Privileged commands.

  • When pkexec timed out, SLPM retried the same command through sudo -n while
    the original was still running — two package transactions at once, on a box that
    only allows one. That's gone.
  • A helper that accepted a command and then lost the reply now reports the outcome
    as unknown instead of letting you watch it run twice.
  • LANG/LC_ALL are forced for child processes; on a Persian desktop the English
    error matching had stopped working, so failures came back as raw apt output.

Smaller wrongness.

  • Unknown package managers answer 400 like their siblings instead of 200 with a
    false.
  • A version string from the browser is checked before it reaches
    apt-get install name=version.
  • autoremove finally shows up in the operations log.
  • A string "false" can no longer switch a startup entry on.
  • AppImage icons are found when they live under usr/share/icons, which is where
    most of them live.
  • Flatpak installs go to the user installation, where the uninstaller can actually
    find them.

Paper cuts.

  • The "resume" path can no longer write two downloads into the same file, and a
    download job that hits an exception says it failed instead of pretending to run
    forever.
  • A reply that arrives after you closed a dialog no longer lands in the next one.
  • Flipping between Simple and Advanced a few times quickly no longer paints the
    wrong list.
  • The updates page tells you when the fetch failed instead of going blank.
  • The version check doesn't reopen itself after you dismiss it.
  • On a dark desktop, the theme button sits in the correct state on first load
    instead of lying until you click it.

Upgrading

Swap the old AppImage for the new one. Nothing else on your system was touched:

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

Files

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

Testing

selftest.py is green: 352 checks, including a new one that fails the build if the
version drifts between the metainfo files, both READMEs, the website and the
release workflow.

Full changelog: v0.3.0...v0.3.1