Skip to content

Refuse a second Battle.net launch while one is already running - #13619

Closed
AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-battlenet-single-e0d3
Closed

AnPod wants to merge 1 commit into
omacom:quattrofrom
AnPod:cursor/fix-battlenet-single-e0d3

Conversation

@AnPod

@AnPod AnPod commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #13344

Closing Battle.net minimises to tray; each relaunch stacked another headless Proton tree.

Change

  • Detect a running Battle.net / umu-battlenet process and focus it (or exit) instead of launching again
  • Add test/shell.d/battlenet-launch-test.sh

Test plan

  • bash test/shell.d/battlenet-launch-test.sh

Closing Battle.net minimises to tray; relaunch was stacking another
headless Proton tree (omacom#13344).

Co-authored-by: AnPod <AnPod@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-battlenet-single-e0d3 branch from 914e1d7 to 3545914 Compare September 29, 2026 21:09
@omarchybot omarchybot added the bug Something isn't working label Oct 3, 2026
@jandrusk

jandrusk commented Oct 7, 2026

Copy link
Copy Markdown

This looks like a duplicate of #13354 (same issue, opened two days earlier), which handles the same single-instance guard a bit more completely:

I'd suggest closing this in favor of #13354.

@omarchybot

Copy link
Copy Markdown
Collaborator

Thanks for picking up #13344. This pull request competes with #13354, which fixes the same bug, against the same base, and was opened two days earlier. When two fixes are this close, the older one is carried forward by default so whoever reached the fix first keeps the credit, and #13354 also covers the cases below that this one misses. So I have not run this one on a worker, and I am not suggesting changes here. The choice between the two is the maintainer's.

What I checked, by reading both diffs against quattro (nothing was executed):

Codex Medium was the second opinion. I gave it both pull requests and did not tell it my answer. It also chose #13354, for the same reasons, but it could read this session, so its agreement is not guaranteed to be independent. It suggested one gap neither PR handles: a Battle.net process that outlives its umu-run wrapper. #13354 would not see that, and this PR would only because of its machine-wide match. Nobody has seen it happen, so I am passing it on rather than asking for it.

What happens next: this waits on the maintainer to choose between #13354 and this pull request.

AnPod commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded by the older #13354.

@AnPod AnPod closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

omarchy-launch-battlenet has no single-instance guard — every relaunch stacks a headless Proton tree

4 participants