http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #19 from Gogol maartenvdbent@gmail.com 2010-02-14 10:29:57 --- (In reply to comment #18)
(In reply to comment #16)
If you try to open in Nautilus a document like "An example document.doc", Word will try to open it as An.doc, example.doc, and document.doc (three times individually), but since they do not exist, it creates an error.
Oddly enough, "An example document.ppt" opens just fine.
The solution you suggested doesn't work unfortunately. Word will remain trying to open spaced documents separately.
Are you positive you followed the steps correctly? (i.e., Did you make the shell script executable and type the following command in one line?
wine "C:\Program Files\Microsoft Office\Office12\winword.exe" "`winepath -w "$@"`"
I used the provided solution and it works fine for me as well as a few others. If it works for us, then there is no reason it should not work for you, as the Bash shell should be in whatever distro you're using.
Ah, having it in one line seems to be the problem. I changed the ` for a ', as the command didn't work when spreading it on two lines, but that resulted in Word opening spaced documents separately. Now that I changed back the ' for a ` and put everything on one line, everuthing seems to work fine. Thanks!