"Set run action" for Wine .exe programs

Booting, installing, newbie
Message
Author
User avatar
davids45
Posts: 1326
Joined: Sun 26 Nov 2006, 23:33
Location: Chatswood, NSW

#31 Post by davids45 »

G'day again,

Well that didn't take long.

And mcewanw, have you been taking lessons from my wife on how to hide my socks by putting them in front of me in my sock drawer?
When I actually read all of your earlier post about using the slashes but with a "@" in place of the first suggested "1", by using this slash combination in the application_x files for Word & Excel, all is now fast and fine.

So "${@//\//\\}" works with the MS Office programs data files clicked from ROX.

F'rinstance, in /root/Choices/MIME-types/, my specially created file application_x-xls reads:

#!/bin/sh
exec wine "/root/.wine/drive_c/Program Files/Microsoft Office/Office/EXCEL.EXE" "${@//\//\\}"

And now opens any .xls file I click from ROX. In dpup482beta (I'm using this now), I have not altered the /root/Choices/MIME-types/application_vnd-ms.excel but I have changed the globs entry to go to my applications_x-xls file, not to application_vnd-ms.excel

I first got this working in Pup4.2 a few minutes ago, where I had left the globs alone and just edited the application_vnd-ms.excel file with the above wine line using "${@//\//\\}".

So it looks like there are two ways to finally skin this particular cat.

David S.

Post Reply