[Wine] Re: Winepath on Mac

doh123 wineforum-user at winehq.org
Thu Apr 15 20:51:05 CDT 2010

assuming you have Wine installed to /usr/local ... change things here as needed. This will make a winepathOSX script to give the answer you want.

type in...

sudo touch /usr/local/bin/winepathOSX
sudo chmod 755 /usr/local/bin/winepathOSX
sudo nano /usr/local/bin/winepathOSX

in the text editor that comes up...
copy and paste in this code

TEMPVAR=$(/usr/local/bin/winepath "$@")
echo ${TEMPVAR#${TEMPVAR%:*}:}

hit Ctrl X and answer Y to save.

from that point on if you type in as a command...

winepathOSX z:\Applications\folder\whatever.txt

it would come up as

More information about the wine-users mailing list