Files
DeozaanandClaude Opus 5.5 18bd2ca15e Start games from desktop and Steam shortcuts through Quiver, so cloud saves sync (#522)
* Start games from desktop and Steam shortcuts through Quiver, so cloud saves sync

A shortcut made in Quiver started the game directly, so its saves never
synced before play or backed up after. It now runs `quiver --launch <app>`:
a small helper with no window that finds the open Quiver, or starts one
with none, waits while Quiver brings the saves in line as Play does, then
starts the game itself and tells Quiver when it closed, for the backup
and upload. Steam ties its overlay, controller settings, playing status
and Stop to the program it started and what that starts, which is why
the helper starts the game rather than Quiver (tested on Windows and a
Steam Deck).

Steam's Stop ends the shortcut at once on Windows, so a Quiver it starts
there breaks away from Steam's job. On Linux it stays among Steam's
processes, so Game Mode shows its window for the which-saves question;
Exit Game gives two seconds after SIGTERM, in which it backs up and hands
the upload to a Quiver started outside Steam (systemd-run, or flatpak run
on the host) with --upload-saves.

Usage data's app_launched and app_closed say whether Play or a shortcut
started the app, and how a shortcut's game ended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Hand the saves on from the shortcut when Steam's Exit Game stops it

On a Steam Deck, Exit Game's SIGTERM also ended the AppImage's mount under
the Quiver the shortcut started, so it never got to back up or hand the
upload on. The shortcut's helper, which is still waiting on the game,
now starts the Quiver outside Steam's processes itself, and that Quiver
backs up the saves once the game has closed before sending them.

Each step of a shortcut's launch is noted in quiver.log ("shortcut: ..."),
with the app and the program's name only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Return a Steam shortcut to the library as soon as the game closes

The AppImage's runtime (uruntime) kept its mount for a while after
Quiver closed, looking every five seconds whether it was still used, and
Steam showed the game as running on a black screen for up to 25 seconds
after it closed. The AppImage now holds REUSE_CHECK_DELAY=0, and the
Quiver a shortcut starts gets it too. A shortcut that can't start its
app shows Quiver's window with why before saying so, rather than quitting
before the window opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Leave the controllers to the game while a shortcut's Quiver has no window

Quiver reads controllers itself, through SDL, and its hidden page still
said it had the focus, so a Quiver a shortcut started moved through its
library, opened search (and Steam's keyboard) and started games as the
player played. With no window on screen it now leaves them alone, as
behind a game; shown for a question, it has them again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Give the Quiver that sends the saves after Exit Game the session's display

Started by systemd-run, outside Steam's processes, it had none of the
session's environment and couldn't open even the window it keeps hidden
(Runtime(CreateWindow)), so Exit Game's saves weren't sent. It now gets
the display, the bus and what says it's Game Mode, and not what Steam set
for the game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep a shortcut's Quiver running through Steam's Stop on Windows

Steam's Stop ends the program it started and every process whose parent
leads back to it; it puts a shortcut in no job (tested), so breaking
away from one did nothing and the Quiver the shortcut started was ended
before it could back up and send the saves. It's now started through a
middleman (--shortcut-hop) that exits at once, leaving it no living
parent to be found by.

quiver.log lines go out in one write, so a shortcut's helper and Quiver
writing at once don't run into each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Set up a game's copy from a shortcut, and start it through the shortcut

A shortcut whose game needed the player's copy was turned away with a
message, and Play without it in that Quiver's window started the game
from Quiver, which Steam didn't show or track. The shortcut now waits
while the window asks, as Play does: setting the copy up, Play without
it and "I've already set it up, don't ask again" all start the game
through the shortcut, and Cancel or closing the question tells it not to.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* A shortcut that starts Quiver waits for the account, so cloud saves sync first

A hidden Quiver started by a shortcut answered it before the account had
loaded, so cloud saves were off for that start and the game began with the
saves on this computer. The page now answers shortcuts once the account is
ready. The web tests' stand-in answers shortcut_requests, which the page
asks for on start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015HpW13PMkoWDb7bqcSp3cK

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:34:23 +11:00
..
2026-10-31 21:54:21 +11:00
2026-10-31 21:54:21 +11:00
2026-10-31 21:54:21 +11:00