Closed Pobega closed 4 years ago
For testing purposes: https://github.com/flatpak/flatpak/issues/1789#issuecomment-398324698
You can use flatpak info -l org.freedesktop.Platform//20.08
to see where your local copy of the Sdk/Runtime is and modify it manually in there.
I could throw something like this into a wine
file and hopefully it'll work:
#!/bin/sh
/app/bin/wine "$@"
Yep, when adding in /usr/bin/wine
as a wrapper the emulator was able to load successfully.
Added Gist of a strace of both a functioning and broken Fcade
Looks like the relevant log in the broken case is here:
[pid 7] write(4, "2020-09-18 09:14:55,108:INFO:Pla"..., 66) = 66
[pid 7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid 7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid 7] stat("/app/extra/Fightcade/emulator/fbneo/fcadefbneo.exe", {st_mode=S_IFREG|0644, st_size=31975520, ...}) = 0
[pid 7] stat("/app/extra/Fightcade/emulator/../../Resources/wine.sh", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)
[pid 7] stat("/usr/bin/wine", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)
[pid 7] stat("/usr/local/bin/wine", 0x7ffc9f0dbde0) = -1 ENOENT (No such file or directory)
I'm generating logs with strace -f /app/extra/Fightcade/emulator/fcade fcade://play/fbneo/ssf2xjr1 > ~/logs/LOGFILE 2>&1
So interestingly it seems to also look for /app/extra/Resources/wine.sh
. Putting a wine wrapper there seems to allow it to launch wine!
/app/extra/Fightcade/emulator/fcade fcade://play/fbneo/ssf2xjr1
: