Linux desktop app updates
Update checks and in-place updates for Linux desktop apps released on GitHub or Forgejo.
praeco is a Rust library and command-line tool that does all the
update logic. It asks the release source what is new, works out how
the running app was installed, downloads the right file, verifies its
SHA-256, installs it and restarts the app. It draws no interface:
each app shows its own update pill, “What’s new”
sheet and buttons, and calls praeco underneath. On Omarchy, apps
register once and omarchy update then brings them all
up to date, silently, with the password it already asked for. It is
private by default: no telemetry, no account and no identifiers, and it only
ever contacts the release source you name. Releases signed with
packslip are checked against their signature before anything is
installed.
The signing is packslip’s work: the signed format, the verifier praeco embeds and the action that signs praeco’s own releases all come from that project. Thank you to its authors.
An app registers once and praeco keeps it current even when the app
is not running. On Omarchy the system update does the rest:
omarchy update also updates every registered app, with
the password it already asked for. Like the system updaters it runs
beside, it never asks whether to update.
# once: first run, or the package’s post-install step $ praeco init --name myapp --github you/myapp --exe /usr/bin/myapp # every registered app, silently (omarchy update runs this for you) $ praeco update-all # the way out, when the user turns it off or the app is uninstalled $ praeco init --remove --name myapp
Each app is checked and installed on its own. The exit code is 1
if any failed, and --json reports every app as
updated, up_to_date, hosted,
not_installed or failed.
sudo in the current terminal when there is one, else
the desktop’s permission prompt, else a terminal window.
AppImage and tarball installs need none.
On Omarchy, init adds a post-update
hook, through omarchy-hook-install when it is there.
A failing hook never stops the system update, and a file praeco
did not write is never replaced or deleted. Other systems get no
hook; update-all still runs by hand or from a timer.
An app with no praeco program of its own registers an
update command instead. The system update runs that command, and
the app’s own settings, skipped versions and “off”
decide whether to update.
Five steps, and the app decides when each one runs.
One request to the release source. The answer lists every release newer than the running one, newest first, each with its notes. Repeated checks are cheap.
praeco works out how the app was installed from its executable path and the environment, so it knows which file to fetch.
The matching file goes into a private temporary folder. If the release is signed, the file must match its signed digest; otherwise its SHA-256 must match the checksum published with the release. Either way, without a match nothing is installed.
The desktop’s own permission dialog appears when the
package manager needs root. With no dialog available, praeco falls back
to a terminal and sudo.
The app is asked to quit, praeco waits for it to exit, then starts the new version with the arguments you give it.
A release can carry a packslip: one file,
packslip.sigstore.json, signed by the project’s own
release workflow and recorded in Sigstore’s public transparency
log, so there is no signing key to keep or lose. When praeco finds one
on a GitHub release it checks the signature before it downloads
anything, then checks the file against the signed digest. The app and
the user set up nothing.
The first signed release is trusted on first use, tied to the repository’s immutable ID on GitHub and not only its name. A repository deleted and re-created under the same name does not pass.
Once an app has been seen signed, a later release without a valid
signature is refused, and so is one signed by someone else.
Deleting the entry in signers.json accepts a
deliberate change.
Releases without a packslip install as before, with the checksum check. Forgejo and GitHub Enterprise sources stay on checksums.
Anyone who can change and run the project’s release workflow can still get a bad release signed. A signature also does not say a release is the newest, or that it was not withdrawn.
None of this is praeco’s invention. The signed format, the Rust crate praeco uses to verify it and the GitHub Action that signs praeco’s own releases are the work of the packslip project. Thank you to its authors and contributors. If you ship an app, sign your releases with it: praeco will start checking them without a change to your app.
praeco picks the release file that fits how the running app was installed, and the machine’s architecture.
Updates through pacman -U on the downloaded package.
Updates through apt-get, or dpkg when that is not installed.
Updates through dnf, or rpm when that is not installed.
Replaces the AppImage file itself, no root needed. A running copy keeps working until it exits.
Unpacks over the app’s own folder, no root needed. Nothing is deleted.
A source build that isn’t under your home folder is left alone: praeco reports it as unsupported, with the reason, and installs nothing.
An app that calls praeco itself needs two commands: ask whether something newer than the running version exists, then install it over the running app and start it again. A Forgejo or Gitea server works the same way as GitHub.
# is there something newer than 1.0.4? $ praeco check --github you/myapp --current 1.0.4 --json # install 1.0.5 over the running app, then restart it $ praeco install --github you/myapp --version 1.0.5 --exe /usr/bin/myapp \ --restart-pid 4242 --restart -- /usr/bin/myapp --some-arg # a Forgejo or Gitea server instead of GitHub $ praeco check --forgejo https://code.example.com owner/repo --current 1.0.4 --json
An app in C++/Qt, Python, Go or anything else runs the
praeco command and reads its JSON. A Rust app can call
the library directly, or use the command too. Pass
--exe to check and the answer says whether
to offer an Install button at all.
$ praeco check --github you/myapp --current 1.0.4 --json
{
"ok": true,
"source": "github:you/myapp",
"current": "1.0.4",
"latest": "1.0.6",
"update_available": true,
"releases": [
{
"version": "1.0.6",
"tag": "v1.0.6",
"name": "MyApp 1.0.6",
"published_at": "2026-10-24T09:12:00Z",
"url": "https://github.com/you/myapp/releases/tag/v1.0.6",
"prerelease": false,
"notes": "### Fixed\n- The sidebar no longer flickers."
}
]
}
Errors come back the same way, with a code such as
network or rate_limited and a plain
message the app can show as is. The release notes are the release
body, cut off before its install instructions.
Each app ships its own praeco, pinned to a release tag, at
<exe dir>/../lib/<app>/praeco. To move to a
newer praeco, the app bumps the pin in one of its own releases. The
praeco already installed downloads that release, and the new package
carries the new praeco. Users never install or update praeco
themselves.
Each release has static binaries for x86_64 and aarch64 Linux with their SHA-256 checksums, so the packaging step needs no Rust toolchain. From 0.4.0 the release is also signed, and the binary is bigger because it checks signatures: 7.7 MB on x86_64 and 5.9 MB on aarch64, against 3.2 MB and 2.8 MB before.
# in the app's packaging step $ base=https://github.com/jrimmer/praeco/releases/download/v0.4.0 $ curl -fLO "$base/praeco-linux-x86_64" -O "$base/praeco-linux-x86_64.sha256" \ -O "$base/packslip.sigstore.json" $ sha256sum -c praeco-linux-x86_64.sha256 $ packslip verify packslip.sigstore.json --artifact praeco-linux-x86_64 $ install -Dm755 praeco-linux-x86_64 "$pkgdir/usr/lib/myapp/praeco"
The packslip verify line is the
packslip command-line tool, and it is optional: it shows the file was
built by praeco’s own release workflow. Building from source
works too, with Rust 1.93 and a C compiler (and
options=(!lto) under makepkg). Rust apps add the library
from crates.io with cargo add praeco and bump its version
the same way; default-features = false leaves out the
signature check and the 90 or so crates it brings. The
README
has the details.
Your installed version never leaves your machine. praeco
fetches the release list and decides locally whether anything is
newer. The release source sees your IP address, which any
connection needs, and a user agent of
praeco/<version>; a download also names the
file it wants, as any download does. No telemetry, no account.
A token is optional, and goes to the API host only.
The file must match the checksum published with the release, and is hashed again right before it is handed to the installer. Without a match, nothing runs.
A release with a packslip is checked against its signature and the signed digest of the exact file, bound to the repository’s ID, before anything is downloaded. A project seen signed cannot fall back to unsigned releases. GitHub only.
Over HTTPS only, and only from the configured repository’s release downloads. A release that lists a file anywhere else is refused.
pkexec, sudo and the package managers
come from /usr/bin, /usr/sbin,
/bin and /sbin only, never your
PATH, and run with a cleared environment.
Only the package manager runs as root, on the verified file. praeco never executes anything it downloaded and never runs a script or a shell.
AppImage and tarball updates run as you. Tarballs write only below the app’s own folder and refuse unsafe paths and decompression bombs.
Without a packslip, the checksum comes from the same release as the file, so it catches corruption and a tampered mirror, not a compromised release account. With one, a stolen upload or release token is no longer enough; anyone who can change and run the project’s release workflow can still get a bad release signed.