From eb468e5bde61905619e05e7d415709a7227e854f Mon Sep 17 00:00:00 2001 From: Mark Pitman Date: Sun, 22 Mar 2026 21:38:03 -0700 Subject: [PATCH] debian: add Wine with proper 64-bit prefix initialization Install wine and wine32:i386 (with i386 multiarch enabled), then initialize a 64-bit Wine prefix via wineboot --init. Without explicit initialization, syswow64 is left empty and 32-bit installers fail with "could not load kernel32.dll, status c0000135". Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- debian/install-desktop-packages | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/debian/install-desktop-packages b/debian/install-desktop-packages index ace23c0..82bd9ca 100755 --- a/debian/install-desktop-packages +++ b/debian/install-desktop-packages @@ -13,6 +13,9 @@ curl -sS https://debian.griffo.io/EA0F721D231FDD3A0A17B9AC7808B4DD62C41256.asc | echo "deb https://debian.griffo.io/apt $(lsb_release -sc 2>/dev/null) main" | sudo tee /etc/apt/sources.list.d/debian.griffo.io.list +# Enable 32-bit architecture (required for wine32) +sudo dpkg --add-architecture i386 + # Update package repos sudo apt-get update @@ -39,8 +42,17 @@ pipx \ qemu-system-x86 \ qemu-utils \ virt-manager \ +wine \ +wine32:i386 \ xclip +# Initialize Wine prefix (64-bit with 32-bit WoW64 support) +# Without explicit initialization, the syswow64 directory is left empty and +# 32-bit apps fail with "could not load kernel32.dll, status c0000135". +if [ ! -d "$HOME/.wine" ]; then + WINEARCH=win64 WINEDEBUG=-all wineboot --init +fi + # Pango 1.56.x workaround: when FONTCONFIG_FILE is unset (or set to the default # /etc/fonts/fonts.conf path), Pango's font-loading thread pool hits a stack # corruption bug processing cache-11 entries for variable fonts (Cascadia Code,