Search code examples
macos.app

How to create application to launch wine and Windows application


I'm trying to use "wine" on MAC osX Sierra version 10.12, wine is version 1.9.19

In the terminal I can launch Windows applications, however its a pain to have to keep typing in:

    /Applications/Wine\ Staging.app/Contents/MacOS/wine ~/.wine/drive_c/Program\ Files/HeidiSQL/heidisql.exe

I've searched around for a post on how to create shortcuts/applications to add to the launchpad, but so far none of the information has led me to a working end result. Either the locations of wine is different or it just doesn't work.

I've tried creating an application script:

    do shell script "/Applications/Wine Staging.app/Contents/MacOS/wine ~/.wine/drive_c/Program Files/HeidiSQL/heidisql.exe"

But this won't run either.


Solution

  • For anyone having the same problem, in the end I created scripts which reside in my home folder:

    Launch vi, create a file called HeidiSQL, insert:

        wine ~/.wine/drive_c/Program\ Files/HeidiSQL/heidisql.exe
    

    Save and exit file, grant file execute permissions:

        chmod +x HeidiSQL
    

    Launch wine terminal and type in ./HeidiSQL to launch, I then did the same for PSPad.exe:

        wine ~/.wine/drive_c/Program\ Files\ \(x86\)/PSPad\ editor/PSPad.exe