http://bugs.winehq.org/show_bug.cgi?id=34730
--- Comment #5 from lovyagin@mail.com --- (In reply to comment #1)
What is the use case for doing this?
For example, I'm using Far Manager for most part of my work. It is very ofthen when I require to run some programs from its command prompt - open caja(nautilus) or linux terminal emulator or any other linux program to open file with (libreoffice/gimp etc).
Obviously you cannot do this on windows...
Obviously I can. I can any program installed on system from windows command prompt.
...and reading the code and the change I made, it was purely by luck that it ever worked in wine's command anyway.
Why? Isn't it normal reasonable behaviour to make no difference between linux and windows programs? Since I can run .exe file from linux command prompt (wine starts automatically), why I can't run any linux command from windows command prompt?
In fact it didnt really work - if you try it, you'll see that it runs the unix program without waiting for it to complete, and gives you the command prompt back which is then overwritten by the programs output.
It's OK. It would not wait on Windows too if you run winword from Far Manager. In fact the best way to develop this thing is to check weather console (wait) or X application (no wait) was executed and redirect output of console applications to wineconsole properly.
It's acceptable but not a normal behaviour when executing program from Far manager causes to open new wineconsole windows each time. But removing any ability to execute linux program in non-acceptable at all.
If you assume the thing being run is a fully qualified unix path, its relatively easy to get this functionality back, I guess the question is whether we *should* add back in the functionality as there's little that can be done about the limitations.
Attached is patch to get it working, but not sure it would be accepted if I submit it. It only supports a command in the form /path/to/unixexecutable
Why only full path? Why? Everything that is valid linux command should be executed from wine shell.