Hi I have installed a Java program.

If I put


in the command line it starts.

I created the following *.desktop file.

[Desktop Entry]

I can find the Icon on the desktop but it will not start the program. Is there something I am missing?

  • What is the output of ls -l /usr/local/TheNumberRace/start.sh? Dec 30 '17 at 17:21
  • root@slax:~# ls -l /usr/local/TheNumberRace/start.sh -rwxr-xr-x 1 root staff 95 Sep 17 12:58 /usr/local/TheNumberRace/start.sh
    – Creative
    Dec 30 '17 at 18:07

Desktop entries need at least 2 keys: Type and Name. Try adding Type=Application to your .desktop file.

By the way, it may not be your case but if the program you are trying to execute does not have a GUI, then it may appear that it never gets executed, but if you take a look to some program like top or gnome-system-monitor the process will be there.

  • Added "Type=Application" just before name. It make no difference.
    – Creative
    Dec 30 '17 at 19:41
  • @Creative Did you make it executable? chmod u+x your_file
    – nxnev
    Dec 30 '17 at 19:45
  • yes I did that as well. I can start the program by double klick on the *.desktop file. But if I press on the Shortcut on XLunch nothing happens.
    – Creative
    Dec 31 '17 at 17:06
  • Just added the Program to the fluxbox menu. I can now start it from the fluxbox menu. Just wonder why it does not work from XLunch.
    – Creative
    Jan 1 '18 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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