Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an application (Star Trek Bridge Commander) which runs fine on Wine when I navigate to its directory and 'open with -> Wine Windows Program Loader' from the right click menu. Unfortunately, it quits with a runtime error if I try to use 'wine (path)' or 'wine start (path)' in the terminal. This is a problem because I am trying to make a custom shortcut (.desktop file) to open it.

Thankyou for any assistance :)

share|improve this question
up vote 1 down vote accepted

You need to


into the directory of the file and then run


to run your program.

For example, the following will give STBC (and many other applications) a runtime error:

wine /home/USER/.wine/drive_c/Program\ Files\(x86\)/Activision/Bridge\ Commander/stbc.exe

The correct set of commands to use is:

cd /home/USER/.wine/drive_c/Program\ Files\(x86\)/Activision/Bridge\ Commander

wine stbc.exe

This is apparently because it gives the application the correct working directory, which does not happen with the first example.

How to put the working set of commands into a single command for use in a .desktop file (shortcut), however, is something I don't know how to do, so I simply created a bash script containing both commands and linked the .desktop file to that instead.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.