exe file works with wine program loader, but not protontricks flatpak
The exe file in question is a third party addon for microsoft flight simulator 2020, that being MSFS 2020 Map Enhancement. I cannot for the life of me figure out why Wine windows program loader would work but the Protontricks wine prefix wouldn't.
I can't just use WWPL for the app, because it needs to connect with the simulator's map image server. Aside from that, the rest of the UI functions normally, whereas with Protontricks, I am predominantly met with black squares that do not go away, and every now and then the UI loads up with an error about my WMIC service.
I've tried contacting the mod author, but to no avail as he only questioned why I'm even on linux in the first place. Other third party addons like littlenavmap work in the Protontricks prefix, which just makes this even weirder.
Protontricks being executed inside a Flatpak sandbox might have something to do with it. WMI is supposedly used to query various bits of system information under Windows and running under a sandbox might prevent some of the operations from working. But that's just a guess.
To be sure you'd have to run Wine with logging enabled both in and outside the sandbox to see where it differs. To do this you would run the application with WINEDEBUG environment set to log program execution, more details here. This will require plenty of technical know-how, however...