Skip to content

Fix hardlink deployment refused when mods go into the Proton prefix - #37

Open
Yagz wants to merge 1 commit into
Arkazzae:masterfrom
Yagz:fix/hardlink-volume-check-prefix-paths
Open

Yagz wants to merge 1 commit into
Arkazzae:masterfrom
Yagz:fix/hardlink-volume-check-prefix-paths

Conversation

@Yagz

@Yagz Yagz commented Nov 21, 2026 •

Copy link
Copy Markdown

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 /home is 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:

  • hardlink and move deployment compare the staging folder with the folder inside the prefix;
  • the staging folder suggestion and the "Suggest" button in Settings → Mods propose a folder on the prefix's drive;
  • if the prefix can't be found, the error says so, instead of reporting a write permission problem.

Testing

  • New test 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.
  • Real setup: BG3 through Proton, game and prefix on one drive, /home on 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 PKGBUILD and .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

… 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]>
@Yagz Yagz changed the title Check the drive deployment writes to when a mod path is mapped into a Proton prefix Fix hardlink deployment refused when mods go into the Proton prefix Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant