https://bugs.winehq.org/show_bug.cgi?id=47355
--- Comment #4 from Lantizia s.maddox@lantizia.me.uk --- (In reply to Alberto Salvia Novella from comment #2)
I mean that instead of being Wine who decides if to run DosBox or not, that to be done by the file manager itself, based on the shared mime info.
For that the shared mime info shall be updated accordingly, and then the code handling DosBox removed. Because the file manager will no longer allow opening Dos exes with Wine.
Then there would be no redirection.
Right but if this is your point then.... a) Your bug is not with wine at all as it isn't Wine which is deciding what should load when your system/file-manager opens a file b) You are not considering an environment where Wine was initially called (e.g. a 32-bit Windows EXE) and it then goes on to call a PIF or a 16-bit DOS EXE later on. In this situation then yeah Wine needs to go on dealing with DOSBox directly for the reasons I've already given about drive mapping.