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.

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

1 Answer 1

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 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.