mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 22:36:00 +00:00
fix(xbox): hand Xodus a launch folder the Linux guest can see (#2751)
* fix(xbox): log and show why an Xbox launch could not be prepared * fix(xbox): hand Xodus a launch folder the Linux guest can see --------- Co-authored-by: Zeratullo <8460122+Zeratullo@users.noreply.github.com>
This commit is contained in:
1 parent
c8b291b9db
commit
c7cd2b55af
4 files changed
+19
-3
No files matched your search
@@ -50,4 +50,15 @@ class XboxLaunchViewsTest {
|
||||
assertEquals("preserve", evidence.readText())
|
||||
} finally { root.deleteRecursively() }
|
||||
}
|
||||
|
||||
@Test fun viewsKeepTheFilesPathTheGuestBinds() {
|
||||
val root = Files.createTempDirectory("xbox-view-alias").toFile()
|
||||
try {
|
||||
val real = root.resolve("data/data/app/files").apply { mkdirs() }
|
||||
val alias = root.resolve("user0").also { Files.createSymbolicLink(it.toPath(), real.parentFile!!.toPath()) }.resolve("files")
|
||||
val view = XboxLaunchViews().create(alias)
|
||||
assertEquals(alias.resolve("xbox-runtime/views").path, view.parentFile!!.path)
|
||||
assertTrue(real.resolve("xbox-runtime/views").resolve(view.name).isDirectory)
|
||||
} finally { root.deleteRecursively() }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user