Skip to content

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 01 Dec 00:02
· 22 commits to main since this release

A bug-fix and hardening release. Several fixes close ways for untrusted input to reach files outside Sable's own directories, so upgrading is recommended.

Security

  • Slugs from .sable archives and from Lutris or native install scripts are reduced to a single path component. Before, an archive or script could name an absolute or ../ path, and removing the game with its files deleted that directory.
  • itch.io upload file names are reduced to their final component.
  • GOG cloud save names can no longer write outside their save location.
  • Diagnostic reports redact secret-looking keys in the embedded configuration, so values such as a GOG_TOKEN set in the config are no longer printed.
  • GOG sign-in and token refresh errors no longer include the authorization code or refresh token.
  • Without XDG_RUNTIME_DIR, the socket directory is /tmp/sable-<uid> with the real uid instead of /tmp/sable-user for every user. sabled refuses a runtime directory owned by someone else and restricts it to its owner.
  • Extraction drops setuid, setgid and sticky bits, and zip entries can no longer be written through symbolic links that lead out of the destination.

GOG cloud saves

  • Saves are uploaded and downloaded in Galaxy's gzip format, and the sync state records the local and cloud hash of each file separately. Files uploaded by Galaxy are no longer treated as changed on every sync.
  • Reinstalling a game no longer deletes its cloud saves. Deleting a game's files or removing it clears its sync state, and a missing save folder is treated as absent rather than deleted.
  • Files with identical contents on both sides are recorded as in sync, so a later local edit uploads instead of becoming a permanent conflict.

Saves and snapshots

  • Restoring a snapshot no longer deletes the current saves first. The restored copy is staged next to them and swapped in, which also works when the saves are on another filesystem.
  • Sessions re-attached after a daemon restart keep their Wine prefix, so the post-exit snapshot includes $PREFIX save paths.

Game sessions

  • Stopping a game while it is still preparing cancels the launch.
  • Stopping a game in a shared Wine prefix escalates to SIGKILL when the game ignores SIGTERM.
  • Games start with SIGHUP at its default disposition instead of ignored.
  • Output without newlines, such as a carriage-return progress bar, no longer grows the supervisor's memory without limit.
  • After a stalled write to the daemon, the supervisor closes the connection so the daemon reconnects instead of hearing nothing more from the session.
  • Under systemd socket activation, games no longer inherit the listening socket or the LISTEN_* variables, and sabled no longer removes the socket file systemd owns when it stops.
  • Two daemons starting against a new database no longer fail.

Installs and downloads

  • Cancelling an install stops a running program step, and nothing is installed.
  • Epic and Amazon installs refuse an existing library/<slug> folder instead of taking it over and deleting it on uninstall.
  • Interrupted downloads resume with If-Range, so a file that changed on the server is downloaded again instead of being spliced onto the old bytes. Two downloads of the same URL no longer write to one partial file.
  • A downloaded file moved into a game is copied, so a game rewriting its own files can no longer corrupt the download cache.
  • GOG .sh installers are extracted straight from disk instead of being read into memory.

Artwork

  • Store and SteamGridDB covers are decoded by their contents. Artwork for non-Steam games failed to load before.
  • Covers with extreme aspect ratios are cropped before resizing. A 1x300 image used to cost over 300 MiB.

Desktop and deck UI

  • The command palette ranks again after a library refresh. Before, Enter could launch the wrong game, or the palette could crash.
  • Inspector edits stay with the game they were loaded for after switching pages.
  • Editing a hook keeps quoted arguments, its working directory and its timeout.
  • Reopening the add/install wizard during an install keeps the install and its prompts.
  • Browse in an install's file prompt fills in the prompt's answer.
  • Save locations accept several paths separated by ;.
  • In deck mode, controller focus only reaches the switches on the inspector tab that is shown.
  • The Logs tab shows the log of the latest game session.

CLI

  • config set merges env, dll_overrides and runner_options entry by entry instead of replacing the whole map.
  • launch --wait exits with the game's exit code, and fails when the game could not start or was killed.
  • A daemon that exits during auto-start is reported right away, with its exit status.
  • A reply the client cannot read fails the call instead of leaving it and every later call waiting forever.

Packaging

  • SHA256SUMS lists only the artifacts built in that run, and packaging works on hosts without dpkg-deb.
  • The README's build-from-source and systemd instructions are corrected; use %h/.local/bin/sabled in ExecStart=.
  • Release builds check out the tag and verify that it matches the crate version.

Upgrade notes

  • GOG cloud sync state from 0.1.0 is discarded. On the first sync, files present on only one side are copied to the other, identical files are recorded, and files that differ are reported as conflicts with a snapshot. Nothing is deleted.
  • Partial downloads left by 0.1.0 start over, since there is no record that the file is unchanged.
  • In the inspector, separate save locations with ;.

Full Changelog: v0.1.0...v0.1.1