Bad .EXE issue with Wine.

Has anyone run into the Discord plugin refusing to start and spitting out this log line?
ShellExecuteEx failed: Bad EXE format for
Z:\home\<user>\.config\opendeck\plugins\com.elgato.discord.sdPlugin\Discord.exe
ShellExecuteEx failed: Bad EXE format for
Z:\home\<user>\.config\opendeck\plugins\com.elgato.discord.sdPlugin\Discord.exe
Setup Ubuntu 24.04 x86‑64 OpenDeck 2.5.0 (official .deb) Wine 9.0 — wine, wine32, and wine64 all installed and working Seems the discord plugin is 64-bit but wine is trying to run it as a 32-bit.
Solution:
Thank you for your input I solved it by doing the following: ``` rm -rf ~/.wine export WINEARCH=win64 ░▒▓ 1 ✘ │ 13:43:12...
Jump to solution
2 Replies
nekename
nekename3mo ago
Maybe try updating Wine? I think 9.0 is reasonably old by now
Solution
mosbror
mosbror3mo ago
Thank you for your input I solved it by doing the following:
rm -rf ~/.wine
export WINEARCH=win64 ░▒▓ 1 ✘ │ 13:43:12
export WINEPREFIX=~/.wine
winecfg
rm -rf ~/.wine
export WINEARCH=win64 ░▒▓ 1 ✘ │ 13:43:12
export WINEPREFIX=~/.wine
winecfg

Did you find this page helpful?