Repository navigation
Conversation
… Proton prefix A game extension can name a Windows user folder for its mods, such as Baldur's Gate 3's AppData\Local\Larian Studios\Baldur's Gate 3\Mods. Deployment resolves that path into the game's prefix, but the hardlink and move deployment checks compared the staging folder's drive with the unresolved Linux path (~/Local/...), so they refused a staging folder on the same drive as the prefix, and the staging folder suggestion pointed at the wrong drive. Resolve the mod path the way deployment does before checking writability and comparing drives, and report a missing prefix as such instead of as a write permission problem. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 21, 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.
Adds
patches/0044-linux-prefix-deployment-drive.patch.The problem
With Baldur's Gate 3 running through Proton, hardlink deployment is refused with "Works only if mods are installed on the same drive as the game", even when the game, its Proton prefix and the staging folder are all on the same drive. Changing the staging folder doesn't help, and the "Fix" button moves it to the home drive, which is wrong.
This affects any game whose mods go into a Windows user folder, as long as
/homeis on a different drive from the game.Why it happens
BG3 deploys its mods to
AppData\Local\Larian Studios\Baldur's Gate 3\Mods. Vortex for Linux first names that folder~/Local/..., then redirects it into the game's prefix when it actually deploys.The hardlink and move deployment checks skip that redirection. They compare the staging folder with
~/Local, which sits on the home drive, so they conclude the drives differ. The staging folder suggestion makes the same mistake.The fix
The checks now use the same redirected path as deployment itself:
Testing
prefixDeploymentTarget.test.ts. It fails on master with the "same drive" message and passes with the patch. It also checks that a prefix really on another drive is still refused.run-upstream-tests.sh, typecheck, ESLint and oxfmt all pass./homeon another. With a package built from this branch, hardlink deployment became available and all 389 mods were deployed as hardlinks inside the prefix.Notes
This is one of three separate pull requests (#38 and #39 are the others). Each one adds its patch at the same place in
PKGBUILDand.SRCINFO, so after the first one is merged the others will need a small conflict fix.Suggested changelog line: Hardlink and move deployment no longer refuse games whose mods go into the Proton prefix, such as Baldur's Gate 3, when the staging folder is on the same drive as that prefix.
🤖 Generated with Claude Code