CrossOver Support

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 Programs>Run Command menu has an "Open Shell" button, which you'll find the "Debug Options" listing. After selecting the appropriate bottle containing your applications, clicking on "Open Shell" will open a terminal that automatically sets the necessary environment variables, including a directory chance 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 2011-12-14 11:08:55 by Jack Phinney
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
Please Wait...
eyJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNTQzMzQwODEwfQ==