sudo nautilus
Type in your password. Go to usr->share->applications. There, search for MS Word icon. If the MS Office icons are not present there then, copy the icons from the desktop and paste it in the folder.
playonlinux –run “Microsoft Word 2010” z:%f
For Powerpoint you just change “Word” to “Powerpoint” And if you are running office 2007 you just change “2011” to “2007” Do this with all the icons you want to set file associations for. Then close the Window. Then open home folder. Click on .playonlinux->shortcuts.
#!/bin/bash
[ “$PLAYONLINUX” = “” ] && exit 0
source “$PLAYONLINUX/lib/sources”
export WINEPREFIX=”/home/leo/.PlayOnLinux//wineprefix/Office2010″
export WINEDEBUG=”-all”
#POL_Log=Microsoft Office 2010_1336312516
cd “/home/leo/.PlayOnLinux//wineprefix/Office2010/drive_c/./Program Files/Microsoft Office/Office14”
POL_Wine “EXCEL.EXE” $@
change $@ to
“$(echo “$@” | sed -e ‘s:/*/::g’)”
Now, go to the file you want to open, right click and select open with and other applications then show other applications and you should see word and powerpoint. Click on it and is should start. You have to repeat this with all the apps you want to set associations to.
Another solution:
Update PlayOnLinux to 4.1, and open your doc file with
$ playonlinux file.docx