Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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"
Icon=wine
Terminal=false
Type=Application
Categories=Wine;
StartupNotify=true
share|improve this question

1 Answer 1

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

 
discard

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.