execute shell script from desktop in xfce

8,038

You have misspelling in the first line of your .desktop file

[Deskto Entry]

should be

[Desktop Entry]
Share:
8,038

Related videos on Youtube

Asteroth
Author by

Asteroth

Updated on September 18, 2022

Comments

  • Asteroth
    Asteroth over 1 year

    At first I just made a link to the .sh file on my desktop which failed to execute by double click. Then I've read about .desktop files and made one still to no avail. The program I want to run is a shell script with various parameters for executing jar file. My ./desktop file looks as follows:

    [Deskto Entry]
    Encoding=UTF-8
    Name=jessator
    Comment=starts the jess UI
    Exec=/home/alf/Software/Jessator/runJessator.sh
    Icon=/home/alf/Software/Jessator/jess-32x32.gif
    Type=Application
    Terminal=false
    

    Since the script launches from the terminal, it is correct, however since it does not really used the terminal, I don't want to open terminal window to run it. Setting Terminal=true did not help either.

    EDIT: The script I am launching:

    java -cp $JESSATOR/Jessator.jar:/home/alf/JESS/Jess71p2/lib/*:$JESSATOR/TimerBean.jar Jessator
    
    • Asteroth
      Asteroth over 9 years
      It is executable, if I open terminal and call the script from there it executes. I thought about just running it that way with & at the end, but even if do that, the program is closed when I close the terminal.
  • Asteroth
    Asteroth over 9 years
    Can it have something to do with the script calling a java jar with classpath given as one of the parameters?
  • mbiber
    mbiber over 9 years
    We cant know since you haven't pasted the script.
  • Asteroth
    Asteroth over 9 years
    edited the original post, now it holds the exact script