diff --git a/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch b/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch index 256466ad3b..e55df9c39c 100755 --- a/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch +++ b/tools/linuxfs/overlay/usr/local/bin/droiddeck-store-launch @@ -158,7 +158,9 @@ def ask(channel, request, timeout=TIMEOUT, claim=False): def windows_path(unix): tool = bionic_tool(os.environ.get("DD_STORE_PROTON", "")) - return (tool and bionic_path(tool, unix)) or "Z:" + guest_path(unix).replace("/", "\\") + if tool: + return bionic_path(tool, unix) or "Z:" + unix.replace("/", "\\") + return "Z:" + guest_path(unix).replace("/", "\\") def guest_path(unix): diff --git a/tools/tests/test_bionic_paths.py b/tools/tests/test_bionic_paths.py index 030a24f992..71c70df4a8 100644 --- a/tools/tests/test_bionic_paths.py +++ b/tools/tests/test_bionic_paths.py @@ -190,6 +190,8 @@ class StorePaths(unittest.TestCase): (self.tool / 'proton').write_text('#!/bin/sh\nexit 1\n') with self.env(): self.assertEqual('Z:\\home\\games\\c.reg', store.windows_path('/home/games/c.reg')) + self.assertEqual('Z:\\data\\user\\0\\com.droiddeck.launcher\\files\\linuxfs\\tmp\\c.reg', + store.windows_path(ANDROID + '/tmp/c.reg')) if __name__ == '__main__':