Commit Graph
1 Commits
Author SHA1 Message Date
RealtaNuaandClaude Opus 5.5 8d855ecbcb Queue system installs so several apps can install at once
Each install ran its own pkexec call at the same time; all but the first
lost the dpkg lock and failed with error 100. Installs that reach the
system installer now wait their turn ("Waiting for another app…", with
Cancel), and Linux packages waiting together go into one privileged call,
so they share one password prompt. apt waits up to 60 s for another
package tool's lock. On Windows msiexec runs one at a time (error 1618).
The launcher's own update waits for other installs before it restarts.

Ported onto main and onto "Keep the verified download when the install
step fails", with these changes from the original PR:
- A failed job counts as installed when the new version is found
  afterwards only if it failed in a Linux call shared with other apps;
  an MSI, AppImage or single-package error, a pause, and either
  cancellation (including INSTALL_CANCELLED) stand.
- The launcher's update waits for other installs at most 10 minutes and
  can be cancelled from its banner ("Cancel update"); giving up names the
  apps still installing and says to answer or close the password prompt.
- Cancellation toasts say what was called off: "Download cancelled",
  "Install cancelled" (download kept), "Uninstall cancelled" or
  "Update cancelled", instead of a bare "Cancelled".
- The waiting card uses the restyled layout and the app's own colour,
  with no hard-coded sizes.

Fixes #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:40:12 -04:00