The forum

Can't open MS Office 2007 documents from file manager

Author Replies
Jump to the page: 1 - 2
linuxdudeguy Wednesday 31 August 2011 at 15:39
linuxdudeguyAnonymous

Yep I get

$ /home/../.playonlinux/wine/linux-x86/1.2.3/bin/wine winepath -w $PW
bash: /home/../.playonlinux/wine/linux-x86/1.2.3/bin/wine: No such file or directory

How is that possible ? ;)
Quentin PÂRIS Wednesday 31 August 2011 at 15:56
Quentin PÂRISAnonymous

Try

$HOME/.playonlinux/wine/linux-x86/1.2.3/bin/wine winepath -w $PWD
linuxdudeguy Wednesday 31 August 2011 at 16:15
linuxdudeguyAnonymous

Sorry I tried that again, the line should be /home/./PlayOnLinux/wine/../ now I get nothing when I type that in. I also tried opening a file with a name with no spaces and it opens !

But any file name with spaces doesn't open.

I tried that new one I get

$HOME/.PlayOnLinux/wine/linux-x86/1.2.3/bin/wine winepath -w $PWD
err:mshtml:check_version Could not open VERSION file
err:mshtml:check_version Could not open VERSION file
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/../.wine' has been updated.
Z:\\media\\sda7\\Documents

Just updated to 4.0.11 had to run the command again, now I can't open any files from file manager.

But running this opened the file with no spaces from the command line

$ playonlinux --run "Microsoft Word 2007" "$(winepath -w $PWD)/Document.docx"

Edited by linuxdudeguy

linuxdudeguy Wednesday 31 August 2011 at 17:02
linuxdudeguyAnonymous

OK this looks more promising

$ playonlinux --run "Microsoft Word 2007" "$(winepath -w $PWD)\\Document.docx"
err:menubuilder:WinMain unknown option -a
err:menubuilder:WinMain unknown option -r
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.2.3, x86
[POL_Wine_SetVersionEnv] Message: "/home/../.PlayOnLinux//wine/linux-x86/1.2.3" exists
[POL_Wine] Message: Running wine-1.2.3 WINWORD.EXE Z:\\media\\sda7\\Documents\\Document.docx
rm: cannot remove `*': No such file or directory
[POL_Wine] Message: Wine return: 0

This opened the document.

Edited by linuxdudeguy

linuxdudeguy Wednesday 31 August 2011 at 17:17
linuxdudeguyAnonymous

I tried this command again since the path looks right now and I get

$ playonlinux --run "$PWD/Document.docx"
bash: /home/../.PlayOnLinux/shortcuts//media/sda7/Documents/Document.docx: No such file or directory
rm: cannot remove `*': No such file or directory

What the hell is going on ?
devauda Friday 2 September 2011 at 9:52
devaudaAnonymous

Hi linuxdudeguy,

Do you have any solution on this problem?
linuxdudeguy Wednesday 14 September 2011 at 7:52
linuxdudeguyAnonymous

Hi linuxdudeguy,

Do you have any solution on this problem?

Quote from devauda


Yep, install Ubuntu. It just works, open with the option "Open With Microsoft Office Word".
bruschetti Wednesday 9 November 2011 at 23:47
bruschettiAnonymous

I have the same problem. When I run

playonlinux --run "Microsoft Word 2007" DOCUMENT


which: no shasum in (/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
which: no shasum in (/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
which: no shasum in (/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin)
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.2.3, x86
[POL_Wine_SetVersionEnv] Message: "/home/diego/.PlayOnLinux//wine/linux-x86/1.2.3" exists
[POL_Wine] Message: Running wine-1.2.3 WINWORD.EXE /home/diego/comillas.docx
rm: no se puede borrar «*»: No existe el fichero o el directorio
wine: cannot find L"C:\\\\windows\\\\system32\\\\winemenubuilder.exe"

and the document opens in blank in a new document.

Any help?
simon Monday 28 November 2011 at 23:04
simonAnonymous

I have the same problem,

I installed Office 2007 with PlayOnLinux succesfully and it runs great. I used

playonlinux --run "Microsoft Word 2007" z:%f

in the custom open with... command to be able to launch my .doc files with a double click in my file manager. It works well for filenames without spaces, but when the filename contains a space, it tries to open each word as a separate file.
ex: My Doc Document.doc Word tries to open My , Doc , Document.doc and gives a file not found error for each.

Is there any syntax to express whatever %f links to as one file?

Thanks

Edit: I'm running lubuntu 11.10, DE is LXDE and file manager is PCmanF

Edited by simon@ledx.com

Unkuiri Tuesday 6 March 2012 at 18:20
Unkuiri

Hi, Ihad the same problem and found wht seems to be the solution...

Go to your "~/.PlayOnLinux/shortcuts" folder and open the shortcut you want to change, in my example "Microsoft Office Powerpoint 2007" and change:

$@

Quote


to:

"$(echo "$@" | sed -e 's:C:Z:' -e 's:/*/:\\\\:g')"

Quote


Now You can use:

playonlinux --run "Microsoft Word 2007" Z:%F

Quote


It works for me on ubuntu 11.10

I also created a .desktop file on /usr/share/applications with this (this is for Powerpoint I named it mspowerpoint.desktop without spaces to avoid problems):


[Desktop Entry]
Encoding=UTF-8
Name=Microsoft Office Powerpoint 2007
GenericName=Game
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "Microsoft Office Powerpoint 2007" Z:%F
Icon=/home/unkuiri/.PlayOnLinux//icones/full_size/Microsoft Office Powerpoint 2007
Categories=PlayOnLinux;
Name[pt_PT]=Microsoft Office Powerpoint 2007

Quote


Edited by Unkuiri

linuxdudeguy Friday 6 July 2012 at 5:26
linuxdudeguyAnonymous


Thanks Unkuiri,


That worked for most files except ones with a capital C in the filename. The error always shows instead of 'Colour.doc' file couldn't open. It says 'Zolour.doc' couldn't open. That's why it's not opening the file correctly.


Weird. Any idea why it's happening ?

Unkuiri Monday 30 July 2012 at 14:10
Unkuiri

Hi,
The solution is a simple one, just change 's:C:Z:' to 's;C:;Z:;'
Sorry, the error was mine..hope this helps, let me know if that works..
Quentin PÂRIS Monday 30 July 2012 at 17:54
Quentin PÂRISAnonymous

This problem is fixed for 4.1.4
linuxdudeguy Wednesday 8 August 2012 at 12:01
linuxdudeguyAnonymous

Hi,
The solution is a simple one, just change 's:C:Z:' to 's;C:;Z:;'
Sorry, the error was mine..hope this helps, let me know if that works..

Quote from Unkuiri

Yeah it's working  ;  )

Thanks alot Unkuiri.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com