About Us

Products

Services

Compatibility

Partners

Support

Store
 Login  View Cart

Miscellaneous

Running applications from the command line

The easiest way to run an application from the command line is to let CrossOver do most of the footwork and use the --cx-app option:

Be sure to change the "--bottle bottlename" option to match your correct bottle name:

$ ~/cxoffice/bin/wine --bottle bottlename --cx-app warcraft.exe

The above command will tell CrossOver to try an find an application called warcraft.exe and to run it. It is equivalent to giving the full path to the application as follows:

$ ~/cxoffice/bin/wine --bottle bottlename ~/.cxoffice/bottlename/drive_c/Program\ Files/Warcraft\ III\ Demo/warcraft.exe

When using a path containing spaces as in the above example, note that you will have to add a '\' character just before the 'blank space' in order to get past it. If you are new to Linux and you don't feel comfortable using the command line you can read over this documentation to better understand the many options the command line has to offer.

However some applications expect to be run from the directory in which they were installed and thus would fail with th above command. So if the above commands fail you can try running the application from within the directory where it was installed. To do this you will need to change directory into the directory where the application was installed:

$ cd ~/.cxoffice/bottlename/drive_c/Program\ Files/Warcraft\ III\ Demo
$ ~/cxoffice/bin/wine warcraft.exe --bottle bottlename

Running your application each time from the command line will soon become tiresome. To get around this you can write a small script to perform this task for you each time you want run your application. After writing the script you can place it somewhere in your path and then just execute it each time. Or you can add it to your menu or desktop as a shortcut and then it becomes very convenient to run your applications.

Adding Menu entries

If your application didn't add a menu entry go to the Menu Tab in CrossOver and see if there is an entry for your application. Try to recreate the menu entry and if this does not work. You can run your menu editor and add a menu or shortcut to your menu and then go to ~/.cxoffice/bottlename/windata/ to see if an icon was placed somewhere in this directory for your application. If not, then use a stock KDE/Gnome icon if you want one.

Adding a desktop shortcut

The easiest way to now make a desktop shortcut if you already have a menu entry ready is to just drag & drop the shortcut onto your desktop. If this does not work for some reason you can copy the menu entry into your desktop directory and then re-scan your desktop and the shortcut should then appear.