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 created an app launcher for Eclipse JEE and Eclipse C/C++ with alacarte. The `.desktop files have been created and I dragged the apps via the dash board on the launcher panel. But when clicking on them nothing happens!?

Here the .desktop file of one of them:

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=/home/dan/Programs/eclipse_c/CDT_icon.png
Name[en_US]=Eclipse C
Exec=~/Programs/eclipse_c/eclipse_c
Comment[en_US]=Eclipse C
Name=Eclipse C
Comment=Eclipse C
Icon=/home/dan/Programs/eclipse_c/CDT_icon.png

unil

share|improve this question
up vote 2 down vote accepted

As the Exec entry isn't executed by a shell you can't use ~/.

Replace

Exec=~/Programs/eclipse_c/eclipse_c

with

Exec=/home/dan/Programs/eclipse_c/eclipse_c
share|improve this answer
    
Also make sure that the actual executable file can be executed. (e.g. chmod +x eclipse_c) – 16trohrt Jan 19 '14 at 21:25

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.