fix(battlenet): games installed inside the runtime stay listed after a native session (#3148)

* fix(battlenet): games installed inside the runtime stay listed after a native session

* test(battlenet): expect the shared folder for a lone Forever install

---------

Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-11-24 21:12:33 -05:00
1 parent 238ef76c5c
commit 4b289a4802
4 files changed
+87 -2

No files matched your search

@@ -244,6 +244,11 @@ object BattleNet {
"/" + rootfs.relativize(resolved).joinToString("/")
}
}.trimEnd('/')
if (mapped?.startsWith("/") == true) {
val host = File("$target/$relative")
val rootfs = LinuxRuntime.rootDir(context)
if (runCatching { host.canonicalFile.startsWith(rootfs.canonicalFile) }.getOrDefault(false)) return host
}
return com.droiddeck.launcher.frontend.AddedGames.hostPath(context, "$target/$relative")
}