Repository navigation
Add Battle.net's DPI to fresh prefixes on launch - #18286
Merged
Merged
Conversation
Wine reads LogPixels from [Control Panel\\Desktop], which a new prefix doesn't have, so rewriting only existing values left Battle.net at 100%.
Contributor
[Low impact] The PR appears safe to merge; the shared-output problem is fixed. SummaryThe PR adds the missing
Reviews (2) · Last reviewed commit: "Give each Battle.net launch its own regi..." · Reviewed by Greptile |
ryanrhughes
added a commit
that referenced
this pull request
Nov 9, 2026
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 9, 2026
Wine reads LogPixels from [Control Panel\\Desktop], which a new prefix doesn't have, so rewriting only existing values left Battle.net at 100%. Each launch also writes its own temp file now, so two quick launches can't share one.
omarchybot
added a commit
to Bartok9/omarchy
that referenced
this pull request
Nov 17, 2026
quattro added DPI matching to omarchy-launch-battlenet (omacom#17418, omacom#18286) and a launch-battlenet-test.sh of its own. The DPI match now runs only on the path that actually launches, so focusing an open window or refusing a windowless tree leaves user.reg alone. The guard's tests join quattro's file in its style: a real windowless process stands in for the hidden tree, so pgrep is no longer stubbed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a fresh Battle.net install, #17418 doesn't scale anything; the launcher still opens at 100% on a HiDPI monitor. Wine reads the DPI from
LogPixelsunder[Control Panel\\Desktop], and a new prefix doesn't have that value. The launch script only rewroteLogPixelslines that already existed, so all it touched was the copy under[Software\\Wine\\Fonts], which Wine writes on startup but never reads. Wine set it right back to 96.It worked on my first machine only because I'd already run
reg addthere by hand, which created the[Control Panel\\Desktop]value. The test fixture had that value too, so it passed.omarchy-launch-battlenetnow addsLogPixelsto[Control Panel\\Desktop]when it's missing, right after the key's#time=line, and still updates existing values the same as before.Verified
bash test/shell.d/launch-battlenet-test.sh: 3 of 3 pass. The new "adds the DPI to a fresh prefix" case fails against the current script.user.regat scale 2. The only changes were the new"LogPixels"=dword:000000c0line under[Control Panel\\Desktop]and the Fonts copy going from 96 to 192.