Force Thunderbird attachment to open in Word (Resolved)

I use Ubuntu 11.10 and Thunderbird 12.0.1.

When an attachment arrives with an email in XX.doc formate my wife prefers it to open in Word 7

Word 7 was installed with Play on Linux (Front-end for Wine). I have tried pointing the open with option to the Wine VM and WinWord.Exe but get the following message “IOPL Not Enabled” and Word dose not open.

Any one know how to point the open file dierlog box so as to open Word attachments in Word installed in a Wine VM.

My thanks as always.

If you download the doc and open it locally, does it still give the “IOPL Not Enabled” message ?

and when you say Word 7 … do you mean Word 7.0 from Office 95, or Word 12 from Office 2007 (the one with the “ribbon” toolbar thingy) ?

Hi it is Office 7 Word 12.

When I right click a xxx.doc and go to open with I have a selection including Play on Linux chose this option and Word opens with the following Error messages -

This file could not be found
(C:\Program Files.…\xxx.doc)

This file could not be found
(C:\Program Files.…\english.doc)

This file could not be found
(C:\Program Files.…\office 12\120310.doc)

There is n0 message about IOPL


Can you open (local) .doc files by opening Word (in WINE), then navigating to the file from within Word ?

I have icons for Office 7 programs on my Cario-Dock, clicking on word icon opens Word and I can then open word docs that are on the computer.

Office 7 programs are not listed under Wine but under PlayOnLinux Virtual Drives.

When I get the chance, I’ll try to replicate and see if I can come up with a solution … but I wouldn’t hold your breathe, there’s a few issues in one with this:

a) the IOPL error (which Google suggests ha baffled a lot of people, but may actually be irrelevant to this issue)
b) the way Play-On-Linux installs/launches Office 2007
c) getting Thunderbird to launch Winword.exe with the full WINE prefix.

On the whole, I hate WINE issues … but I’ll give it a shot when I can … no promises though :wink:

Did you install the whole Office 2007 through Play-On-Linux ? … it would be handy if I could replicate your exact installation technique a closely as possible … so any info you can give would be nice :slight_smile:

Yes Office 7 was installed as a package through play-on-Linux. File - install - Office - Microsoft Office 2007.

Office 2007 was then installed from my Office 2007 CD since then I have updated Office 2007 with 3 service packs

OK, will post if/when I have something useful to say :wink: … or if I need further info.

It still amazes me that people use MS Office in Linux… for crying out loud we have a native office suite exactly the same as Office, but free… Libre Office? 0.0 It supports are wider range of formats too, and if you don’t wanna use that, then there’s always Google Docs?

Hope you get a solution.

In general, I’d agree …

Some people just can’t/won’t make the change … BUT … he is talking about his wife, and I don’t generally argue with my wife either … more trouble than it’s worth :wink:

Sorry Tramlink’s wife, if you’re reading this :slight_smile:

Libre Office is good if you only do small volumes or internal correspondence within a group that use it.

However, nearly 97% of incoming and out going Docs are to or from MS Office users. Libre Office has some issues with full compatibility with MS Office formatting and thus wastes time having to reformat between the two software’s.

My wife is not one for going back to the stone age as she says. Having to down load and save a doc before opening in Win Word is using time.

That why I’m looking for a way to start Office programs from the right click menu.

Personally I’d say the .doc format is the stone age dinosaur in this topic :wink: … even Office 2010 can read/write .odt format … it even gives you the choice of using it as the default save format when you install it :slight_smile:

I was pleasantly surprised by that … though I’ve not really checked whether Microsoft have messed with the format in any way that screws with formatting.

Proprietary formats (such as .doc and .docx) are the sticking point, and should be ditched as soon as possible.

MS Office is dying … get used to the future … open standards.

I’ve asked everyone that sends me documents to send them as .odt (most are quite happy to do so)… and I always send stuff as .odt (unless specifically requested not to … which aint that often any more) … there is IMHO no reason or excuse for sending documents in a format that ties you and the recipient to one proprietary (and commercial) application.

As I said, I’ve not properly checked formatting between .odt in Office 2010 and LibreOffice … nothing I do is really formatting sensitive … so I suppose I can afford to stick to my guns, but I realise not everyone can … I just wish .doc and .docx would hurry up and die

I thought the commands that open the Office 2007 programs may be of use.

/usr/share/playonlinux/playonlinux --run “Microsoft Word 2007”

/usr/share/playonlinux/playonlinux --run “Microsoft Excel 2007”

/usr/share/playonlinux/playonlinux --run “Microsoft Powerpoint 2007”

I put the command line in a terminal and run -

userone@office2:~$ /usr/share/playonlinux/playonlinux --run “Microsoft Word 2007”
[POL_System_CheckFS] Message: Checking filesystem for WINWORD.EXE
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.3.6, x86
[POL_Wine_SetVersionEnv] Message: “/home/userone/.PlayOnLinux//wine/linux-x86/1.3.6” exists
[POL_Wine] Message: Running wine-1.3.6 WINWORD.EXE
[POL_Wine] Message: Notice: PlayOnLinux deliberately disables winemenubuilder. See
[POL_Wine] Message: Wine return: 0

Word opened OK.

When I closed Word I got the following message in the Terminal -

userone@office2:~$ wine: Install the Windows version of Mono to run .NET executables

Hope this info is useful…

Hopefully I’ll have time to have a crack at this tonight … but I’m now (after seeing that) less convinced this can be done.

I would expect Firefox would have to hand off the temporary documents location to WINWORD.exe as a path, as it:-
WINWORD.exe /path/to/tmp/myfile.doc
but it looks like POL is starting WINWORD from a script called “Microsoft Word 2007” … so Firefox would need to be able to edit the “execute” line contained in that script every time, which it can’t.

But maybe we can cut POL out of the equation altogether. ???

I could install Office 2007 directly with WINE I used POL because it said it would work.

Would that make a difference to the paths.

It might, I dunno yet … but you may find this interesting:

It was sommat I stumbled across whilst researching your “IOPL Not Enabled” error … and was keeping in the back of my mind for future reference if needed :slight_smile:

Have a look at the command line associated with your Cairo-Dock button for Word.
It should look something like this:

wine "/mnt/win_c/Program Files/Microsoft Office/Office/WINWORD.EXE"
If you would use that line to create a desktop launcher which you could use to associate the file type of .doc in your e-mail application.

This is only hypothetical as I cannot verify if it could work or not. (Not using Wine or MS products)

Thanks SeZo I have seen other CMD lines like this on the internet but of no use to me as Office was installed with Play-on-Linuk.

Hmm…I am of the understanding that Playonlinux is just a front end for Wine.
The application is installed to .PlayOnLinux/wineprefix/
Use Playonlinux Wine to run an .exe file

POL_Wine start /unix "path/to/the/file.exe"

Hence my suggestion of looking for the command line associated with your Cairo-Dock button for Word

You could also look at this solution:

I pretty sure you’re right, but I’m guessing his Cairo dock shortcut is using the POL command, but if we search for the path to WINWORD.EXE, it should be easy enough to come up with the correct WINE command.

What’s the output from:

locate -i WINWORD.EXE


sudo find / -iname WINWORD.EXE 


I reckon the problems going to be how to get thunderbird to pass the path to the temporarily downloaded .doc to the WINE command … I’ve not tried that before :slight_smile: