http://bugs.winehq.org/show_bug.cgi?id=19385
Summary: the 'wine start' launcher does not open MS Office documents that have spaces in their path Product: Wine Version: 1.1.26 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: rockorequin@hotmail.com
MS Office 2007 installs without problems, but if you try to open a file (eg a .docx file) from nautilus and the file has a space in its path, MS office says that it cannot find the file.
The launcher for docx files is ~/.local/share/applications/wine-extension-docx.desktop:
[Desktop Entry] Type=Application Name=Microsoft Office Word MimeType=application/vnd.openxmlformats-officedocument.wordprocessingml.document Exec=/usr/bin/wine start /ProgIDOpen Word.Document.12 %f NoDisplay=true StartupNotify=true
Example case:
1. Create a document and save it as /tmp/test document/test.docx.
2. Try to open the file from nautilus (wine should have set up Word 2007 to be the default; if not, select 'Open With' and 'Microsoft Word').
3. MS Word starts up but complains it can't find /tmp/test.docx and document/test.docx, ie it is receiving the filename as two separate arguments.
On a perhaps related note, you also cannot open the document with the command line:
wine "c:\Program Files\Office12\Microsoft Office\WINWORD.EXE" "`winepath -w "/tmp/test document/test.docx"`"
since Word complains with the same error message as above.
This is on Ubuntu 9.04 (amd64).
http://bugs.winehq.org/show_bug.cgi?id=19385
boskar bozkar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bozkar@gmail.com
--- Comment #1 from boskar bozkar@gmail.com 2009-08-27 13:24:22 --- Confirming, i've got the same problem here.
http://bugs.winehq.org/show_bug.cgi?id=19385
Gogol maartenvdbent@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maartenvdbent@gmail.com
--- Comment #2 from Gogol maartenvdbent@gmail.com 2009-09-14 05:57:13 --- Confirm, I have the same issue. Oddly enough not with PowerPoint documents.
Word tries to open a document like "An example document.doc" as An.doc, example.doc, and document.doc (three times individually), but since they do not exist it creates an error.
"An example document.ppt" opens just fine.
http://bugs.winehq.org/show_bug.cgi?id=19385
Jan Hoogenraad jan-winehq@h-i-s.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jan-winehq@h-i-s.nl
--- Comment #3 from Jan Hoogenraad jan-winehq@h-i-s.nl 2009-09-28 05:10:16 --- Same for Office 2000. Starting from "wine explore" does NOT show this bug.
Putting ""-s around "%f" in ~/.local/share/applications/wine-extension-docx.desktop does not help
Apparently nautilus gets its information from a different location.
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #4 from Jan Hoogenraad jan-winehq@h-i-s.nl 2009-09-28 05:26:00 --- Interestingly, PowerPoint from Office 2000 does NOT suffer from this problem.
http://bugs.winehq.org/show_bug.cgi?id=19385
Andrey Bondrov bondrov@math.dvgu.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #5 from Andrey Bondrov bondrov@math.dvgu.ru 2009-10-30 10:34:50 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=19385
Marek Frueauff barni@shownet.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |barni@shownet.pl
--- Comment #6 from Marek Frueauff barni@shownet.pl 2009-10-31 16:32:37 --- There is very quick solution for this problem. 1. Start the regedit "alt-f2 in kde and type regedit", 2. Find registry key:HKEY_CLASSES_ROOT\Excel.Macrosheet\shell\Open\command 3. change the default command: Original: "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /e after change: "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE" /e "%1" 4. Do the same for the keys related to the Word: HKEY_CLASSES_ROOT\Word.Document.8\shell\Open\command HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command
After this cosmetic changes opening of the .doc and .xls files works perfect.
Best Regards Marek
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #7 from Jan Hoogenraad jan-winehq@h-i-s.nl 2009-10-31 18:03:47 --- Doesn't help for me. In my case the escape is missing from nautilus, not from the wine file manager.
http://bugs.winehq.org/show_bug.cgi?id=19385
chris cskoglund@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cskoglund@gmail.com
--- Comment #8 from chris cskoglund@gmail.com 2009-11-06 09:52:08 --- Tried the "" without luck, the same problem also exists when the parent folders have spaces
http://bugs.winehq.org/show_bug.cgi?id=19385
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
--- Comment #9 from Austin English austinenglish@gmail.com 2009-11-24 12:05:24 --- *** Bug 20814 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=19385
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nilesh@itech7.com
--- Comment #10 from Vitaliy Margolen vitaliy@kievinfo.com 2009-12-06 21:21:01 --- *** Bug 20938 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=19385
Ivan Tham ivansf92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ivansf92@gmail.com
--- Comment #11 from Ivan Tham ivansf92@gmail.com 2010-02-04 01:41:03 --- The problem is that whatever is launching, MS Word is not properly wrapping the file name in quotes (i.e., "My Document.docx" is treated as "My" "Document.docx")
Working around the problem isn't too hard.
Try the following. 1) Make a script with the following text: #!/bin/bash wine "C:\Program Files\Microsoft Office\Office12\winword.exe" "`winepath -w "$@"`" and save it as "word_launch.sh". Put it somewhere safe, like your home directory. 2) Make the script executable (right-click on the script, Properties, Permissions). 3) Right-click on a Word document, choose Open With and choose Other Application... 4) Hit the browse button and find the script you just made: 5) Repeat steps 3 and 4 for each different file type (.doc, .docx). 6) Make a new script for each different program (Word, Excel, etc.)
(The solution above is taken from Mazin's post in the following page: http://ubuntuforums.org/showthread.php?p=8769518)
http://bugs.winehq.org/show_bug.cgi?id=19385
leniviy pleasenospam325@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pleasenospam325@mail.ru
--- Comment #12 from leniviy pleasenospam325@mail.ru 2010-02-04 01:52:39 --- just vote already for this bug...
http://bugs.winehq.org/show_bug.cgi?id=19385
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |m.duelli@web.de
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com 2010-02-09 08:28:03 --- *** Bug 21657 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #14 from Gogol maartenvdbent@gmail.com 2010-02-13 09:17:39 --- (In reply to comment #11)
The problem is that whatever is launching, MS Word is not properly wrapping the file name in quotes (i.e., "My Document.docx" is treated as "My" "Document.docx")
Working around the problem isn't too hard.
Try the following.
- Make a script with the following text:
#!/bin/bash wine "C:\Program Files\Microsoft Office\Office12\winword.exe" "`winepath -w "$@"`" and save it as "word_launch.sh". Put it somewhere safe, like your home directory. 2) Make the script executable (right-click on the script, Properties, Permissions). 3) Right-click on a Word document, choose Open With and choose Other Application... 4) Hit the browse button and find the script you just made: 5) Repeat steps 3 and 4 for each different file type (.doc, .docx). 6) Make a new script for each different program (Word, Excel, etc.)
(The solution above is taken from Mazin's post in the following page: http://ubuntuforums.org/showthread.php?p=8769518)
This solution doesn't help. Word will remain trying to open separate documents...
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #15 from Gogol maartenvdbent@gmail.com 2010-02-13 09:21:23 --- (In reply to comment #4)
Interestingly, PowerPoint from Office 2000 does NOT suffer from this problem.
That is indeed very interesting. It suggest that a solution should not be that difficult to achieve.
Can some developer please fix this? It seems like a minor problem that could be fixed with a small effort, but it would help lots of people get rid of this rather annoying problem.
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #16 from Ivan Tham ivansf92@gmail.com 2010-02-13 10:37:16 --- (In reply to comment #14)
This solution doesn't help. Word will remain trying to open separate documents...
I'm afraid I do not understand what you're trying to say. What do you mean "word will remain trying to open separate documents"?
I thought the issue at hand was that wine would confuse a space in the file path with a delimiter and therefore not open the entire path, resulting in a couple error messages.
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #17 from Gogol maartenvdbent@gmail.com 2010-02-13 13:09:06 --- (In reply to comment #16)
(In reply to comment #14)
This solution doesn't help. Word will remain trying to open separate documents...
I'm afraid I do not understand what you're trying to say. What do you mean "word will remain trying to open separate documents"?
I thought the issue at hand was that wine would confuse a space in the file path with a delimiter and therefore not open the entire path, resulting in a couple error messages.
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.
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #18 from Ivan Tham ivansf92@gmail.com 2010-02-13 19:29:40 --- (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.
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!
http://bugs.winehq.org/show_bug.cgi?id=19385
Marius Marais marius@fireid.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |marius@fireid.com
--- Comment #20 from Marius Marais marius@fireid.com 2010-03-15 04:42:40 --- A few ways of launching Word document "Open source at your company.docx": 1. wine 'C:\Program Files\Microsoft Office\Office12\WINWORD.EXE' "`winepath -w "/home/FFAD/marius/Desktop/Open source at your company.docx"`" 2. Double-clicking 3. wine start /ProgIDOpen Word.Document.12 "/home/FFAD/marius/Desktop/Open source at your company.docx"
With a default install, only 1 works (note the excessive quoting), with 2-3 making Word sound like William Shatner. (3 is used internally when double-clicking.)
Using the Regedit advice above, I changed HKEY_CLASSES_ROOT\Word.Document.12\shell\Open\command(default) from: "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /n /dde to "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE" /n /dde "%1" .
Now 1-3 all work.
The same sort of Regedit changes work for Word.Document.8 (doc) and other files that don't open correctly by themselves.
(wine --version => wine-1.1.40)
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #21 from Michael Duelli m.duelli@web.de 2010-03-15 05:09:53 --- Thank you! This is a nice solution. I can confirm that it is working.
So the only thing needed to bypass this bug is a couple of registry changes.
http://bugs.winehq.org/show_bug.cgi?id=19385
leighman leighmanthegreat@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leighmanthegreat@hotmail.co | |m
--- Comment #22 from leighman leighmanthegreat@hotmail.com 2010-03-15 07:19:37 --- This doesn't seem to work for me :(
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #23 from Jan Hoogenraad jan-winehq@h-i-s.nl 2010-03-15 15:27:01 --- Works for me for Word 2000 and Excel 2000, except that the Word.Document.12 setting was located at Word.Document.8 For Powerpoint, I did not have the problem, and installation of Powerpoint 2000 indeed already included the "%1"
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #24 from leniviy pleasenospam325@mail.ru 2010-03-23 07:39:05 --- imho, in dlls/shell32/shlexec.c remove outdated function SHELL_execute_class() - not uses DDE and somehow use execute_from_key() - uses DDE
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #25 from leniviy pleasenospam325@mail.ru 2010-03-23 11:05:40 --- Created an attachment (id=26994) --> (http://bugs.winehq.org/attachment.cgi?id=26994) shell32: enable dde for SEE_MASK_CLASSALL
please test. should fix
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #26 from leniviy pleasenospam325@mail.ru 2010-03-25 10:20:23 --- Oh com'on, the other day there were so many of you pleading for a fix and now total ignore. You ruin my faith in humanity.
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #27 from leighman leighmanthegreat@hotmail.com 2010-03-25 14:23:25 --- (In reply to comment #26)
Oh com'on, the other day there were so many of you pleading for a fix and now total ignore. You ruin my faith in humanity.
I really tried to test with it but I can't work git at all :( Didn't seem to be applying properly...
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #28 from leighman leighmanthegreat@hotmail.com 2010-03-25 14:38:09 --- (In reply to comment #26)
Oh com'on, the other day there were so many of you pleading for a fix and now total ignore. You ruin my faith in humanity.
Awesome, I think it works! I applied the patch, I think, then changed the wine-extension-doc.desktop so it used /wine-git/wine and it worked. It then didn't work when I changed it back to wine. Might be worth someone else checking tho :P
http://bugs.winehq.org/show_bug.cgi?id=19385
--- Comment #29 from leighman leighmanthegreat@hotmail.com 2010-04-08 10:45:51 --- This is fixed for me in .42 =D
http://bugs.winehq.org/show_bug.cgi?id=19385
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #30 from Austin English austinenglish@gmail.com 2010-04-08 12:23:36 --- Fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=9ff19d1d48018e71e75ee4....
http://bugs.winehq.org/show_bug.cgi?id=19385
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #31 from Alexandre Julliard julliard@winehq.org 2010-04-16 13:02:39 --- Closing bugs fixed in 1.1.43.
http://bugs.winehq.org/show_bug.cgi?id=19385
Ilya Basin basinilya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |basinilya@gmail.com