How can I associate .doc files to MS Word 2010 using the same .desktop file as launcher?

Posted by nastys on Ask Ubuntu See other posts from Ask Ubuntu or by nastys
Published on 2012-04-15T10:08:47Z Indexed on 2012/04/15 11:48 UTC
Read the original article Hit count: 289

Filed under:
|
|

I'm trying to associate .doc and .docx files to MS Word 2010 using the same .desktop file as Unity dash and launcher, so I can use the Word icon in launcher.

I tried:

[Desktop Entry]
Name=Microsoft Word 2010
Exec=env WINEPREFIX="/home/nastys/.mso2010" wine "C:/Program Files/Microsoft Office/Office14/WINWORD.exe" %f
Type=Application
StartupNotify=true
Comment=Create and edit professional-looking documents such as letters, papers, reports, and booklets by using Microsoft Word.
Icon=29F5_WINWORD.0
StartupWMClass=WINWORD.EXE
MimeType=application/msword; application/vnd.openxmlformats-officedocument.wordprocessingml.document;

Using this .desktop file I can launch Word with its icon in Unity launcher, but if I associate .doc files to the same file Word will launch, but it won't open the .doc file.

If I associate .doc files to any .desktop file generated by Wine it will launch Word, but it will use Wine icon.

© Ask Ubuntu or respective owner

Related posts about launcher

Related posts about dash