Run a windows app from terminal


Running a windows app from terminal in Mac is more complicated than on Linux because a series of environment variables must be passed to the terminal before the app can be successfully launched. For this reason, Crossover's has an "Open Shell" button, which you'll find referenced in the following link : https://www.codeweavers.com/support/wiki/mac/faq/maccmdprompt.

After selecting the appropriate bottle containing your applications, right clicking ( Ctrl+ click ) on the Bottle, then holding down the 'Option' key will switch 'Run Command' to "Open Shell". Click on 'Open Shell' will open a terminal that automatically sets the necessary environment variables, including a directory change into the "drive_c" of that bottle.

From here, you can run windows apps with the following command:

wine --cx-app executable.exe

Whereas executable.exe is the name of the .exe file that launches the program. Thus, if you're in an Office 2007 bottle and you want to launch Word from terminal, you'd use

wine --cx-app winword.exe
Last modified on 2020-08-05 09:27:34 by Ryan Abhiram
Are you sure you want to delete this page?
Note: Any nested pages that are under this one will be moved up one level. Any attachments tied to this page will be deleted.
Move / Rename Page
Unknown Error, unable to move!
That page exists already!
One or more of the parent pages specified in new path do not exist!
/support/wiki/ /support/wiki/mac/faq/macterminal
CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjpudWxsLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNjA1NjMxNTIyLCJjc3JmX3Rva2VuIjoiejI3emVhVTI1N2N2WVNudSIsImdkcHIiOjB9