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.
Edit: I recreated the original file for reference:
[Desktop Entry]
Name=Microsoft Word 2010
Exec=env WINEPREFIX="/home/nastys/.wine" wine C:windowscommandstart.exe /Unix /home/nastys/.wine/dosdevices/c:/users/nastys/Start Menu/Programs/Microsoft Office/Microsoft Word 2010.lnk
Type=Application
StartupNotify=true
Path=/home/nastys/.wine/dosdevices/c:/Program Files/Microsoft Office/Office14
Icon=0575_wordicon.0