Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

The following script creates an icon in Dash Home, but doesn't launch the program. Any ideas why not?

[Desktop Entry]
Name=Civ 5
Comment=Civ & 5
Exec=sh -c "cd /home/mark/.wine/drive_c/Program Files/Sid Meier's Civilization V; wine CivilizationV.exe"
share|improve this question
up vote 4 down vote accepted

Your Exec field should be:

wine "/home/mark/.wine/drive_c/Program Files/Sid Meier's Civilization V/CivilizationV.exe"

Yours fail because the path to the executable contains spaces and sh fails to cd there.

share|improve this answer
Thanks alot. :) – Mark Kirby Aug 15 '12 at 14:51

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.