http://www.murga-linux.com/puppy/viewto ... 429#363429
Example for MS Office files:
http://www.murga-linux.com/puppy/viewto ... 288#364288
Note that you could modify, for example, ~/Choices/MIME-types/application_ms-word to:
Code: Select all
#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/word.exe" "${@//\//\\}"
Note that you don't need to modify the /usr/share/mime/globs file since the mime types application/msword and application/vnd-ms.excel are already correctly defined in there].
and also modify: ~/Choices/MIME-types/application_vnd-ms.excel to:
Code: Select all
#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/excel.exe" "${@//\//\\}"
[You DO NOT need to also right click the icon to set the Run Action when using this method, though doing it that way is an alternative - you'd still need to use the likes of "${@//\//\\}" rather than a plain "$@" though].
mime more generally:
http://www.murga-linux.com/puppy/viewto ... 990#363990