From b3103eb5049a44dcdfccaae6a5dcec14beb2fa95 Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:05:03 -0500 Subject: [PATCH] fix(bionic): drive Z: is the whole device again in prefixes DroidDeck-Proton set up Proton copies a prefix's links as relative ones, so a prefix DroidDeck-Proton set up has dosdevices/z: -> ../../../../../../../../.. . In the guest that is "/", but DroidDeck-Bionic sees the Android tree, where the link ends at the Linux userland folder: a game outside it (SD card, shared storage) was on no drive and Wine crashed in its start-up path conversion (AIO on the SD card, SIGSEGV 2 s after the launch). The launcher made z: only when it was missing; it now points z: at / on every launch when it names anything else. DroidDeck-Proton follows z: -> / in the guest's view, with proot and without. --- tools/bionic-runtime/tool/launch.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/bionic-runtime/tool/launch.sh b/tools/bionic-runtime/tool/launch.sh index 3019efde2b..2337b95674 100644 --- a/tools/bionic-runtime/tool/launch.sh +++ b/tools/bionic-runtime/tool/launch.sh @@ -189,8 +189,22 @@ winpath() { echo "Z:$1" | sed 's#/#\\#g'; } # The prefix carries this tool's builtins when it was last set up by this version; another Proton (or an # older DroidDeck-Bionic) leaves its own links there, and the compatdata version file tells DroidDeck-Proton # to relink when it runs this prefix again. +# Drive Z: is the whole device for this tool: winpath, getcompatpath and the Xbox paths name Android paths on Z:. +# Proton copies a prefix's links as relative ones, and DroidDeck-Proton's relative z: reaches only the Linux userland +# here, so a game outside it (SD card, shared storage) was on no drive and Wine crashed on its path at start. +# DroidDeck-Proton follows z: -> / in the guest's view, with proot and without. +drive_z() { + z=$1/dosdevices/z: + [ -d "$1/dosdevices" ] || return 0 + [ -L "$z" ] || { [ -e "$z" ] && return 0; } + old=$(readlink "$z" 2>/dev/null) + [ "$old" = / ] && return 0 + rm -f "$z" && ln -s / "$z" && echo "$(date +%H:%M:%S) drive z: -> / (was ${old:-missing})" +} + prepare_prefix() { P=$COMPAT/pfx + drive_z "$P" if [ -f "$P/.droiddeck-bionic" ] && [ "$(cat "$P/.droiddeck-bionic")" = "$VERSION" ] && \ [ "$(cat "$COMPAT/version" 2>/dev/null)" = "$VERSION" ]; then return 0; fi if [ ! -f "$P/system.reg" ]; then