* 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>
Quiver Launcher reopens on the screen it was last on (#379). When that
screen has since been turned off or unplugged (a TV on HDMI), the window
could end up out of reach until the screen came back.
Now, once the window shows at startup, and whenever it's reopened or comes
in front, a window that no connected screen shows enough of is moved to
the middle of the primary screen, made to fit, and maximized again if it
was. A saved place with no screen's name may also go back on any screen
that shows it, not only the first.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A shortcuts.vdf that was there but couldn't be read was taken as missing,
so it was replaced by a file holding only Quiver's shortcut (#340). Now
only a missing file is started over; any other read error leaves it alone.
The file is backed up beside itself before each write (the newest five
are kept), a write that would hold fewer shortcuts is refused, and apply
won't write while Steam is open. The copy that waits for Steam to close
now waits until it has stayed closed for five seconds, and waits again if
Steam opens before the write.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Add to Steam while Steam is running, on Linux and Steam Deck
Steam rewrites its shortcuts file from memory when it exits, so a shortcut
written while it's running was lost. Quiver waited in a separate copy of the
launcher until Steam closed, and where Steam had started Quiver it couldn't
add the game at all.
On Linux the running Steam can add a non-Steam game itself, at once, through
its own add-non-steam-game handler — the same one a Steam Deck's Add to Steam
uses. Quiver now writes a small .desktop naming the app that runs a script
starting it, and hands that to Steam, so Steam is the one that writes the
shortcut and it lasts. The script carries the folder, environment and whole
command, so the game starts exactly as Quiver starts it and keeps its exact
title.
Artwork is placed for every app id the shortcut might get, since Steam writes
its program back with its own quoting. On Linux, Steam running Quiver no
longer greys out Add to Steam; Windows, and Steam's own Proton on Linux, keep
the old behaviour.
* Let Steam keep its own Proton when a Windows game is added while Steam runs
On Linux a shortcut runs a wrapper script named by a .desktop, but Steam auto-assigns Proton to a .sh and would run it as a Windows program. A Windows game Steam itself runs with Proton now gets a .desktop naming the game, so Steam stores the game as the program and applies its own compat tool, at once through the running client or written directly once Steam closes.
* Make a game's program runnable so Steam keeps it in a shortcut
A game's .exe from a zip often arrives without the executable bit, and Steam only stores a desktop's program as the shortcut when it can run it: without the bit it adds the .desktop itself, named for the file and launching nothing. Installing now marks .exe, .bat and .cmd runnable, and making a Proton shortcut marks the game runnable too, for installs that came before.
* Add a native game to Steam directly, and use the id Steam chose
A Linux shortcut's `.desktop` now names the game's own program, so Steam
stores the program and starts it in the game's folder, instead of running a
`.sh` wrapper (a game that needs environment variables still gets one, since
an `Exec` Steam parses can't carry them). The launcher carries the launch
options, so the direct write once Steam closes keeps the arguments.
Steam assigns a live add's app id itself, and it need not be the CRC of the
program and name, so the id is read back from its shortcuts.vdf after the add
rather than guessed, and the artwork is named for what it chose. The Icon
grid image is placed alongside the others.
* Say the artwork shows after Steam restarts
Steam reads the grid folder as it loads, so artwork copied in for a live add
shows after a restart, while the shortcut itself is already in the library.
The result says so, rather than leaving the player to wonder.
* Sync the Chinese catalogs with the new Steam note
The Steam-running note's text changed, and main's Simplified and Traditional
Chinese catalogs still carried the old string. Re-extracting replaced it and
left the new one untranslated, as the other locales already were.
* Let players add a GitLab token, for a higher GitLab request limit
Settings' Advanced section gets a GitLab token beside the GitHub one: it is checked with GitLab before it is saved, kept in the OS keychain, and shown with how many requests are left. GitLab does not let a page read its rate-limit headers, so the Rust side reads them instead.
Show GitLab's request limit per minute, and translate the GitLab token settings
* Explain GitLab's limit when it refuses releases, and keep the token on GitLab's API
- When GitLab refuses releases (403/429, or a refusal the page can't read at
all), the Rust side asks GitLab again and reads its rate-limit headers, so
players see when the limit resets instead of only "GitLab answered 429".
- gitlab_limit only asks GitLab's own API, so the token can't be sent anywhere
else, and reuses one HTTP client.
- One helper words GitHub's and GitLab's refusals.
- Remove token waits while a token is being checked, so a check that ends
later can't save the token again.
- Create a token on GitLab opens the token page of the GitLab the launcher
asks, not always gitlab.com.
- The GitLab token strings in Simplified and Traditional Chinese.
---------
Co-authored-by: Thomas Georgiadis <tgeorg94@gmail.com>