Results 1 to 2 of 2

Thread: Creating launcher shortcut

  1. #1
    Join Date
    Nov 2012
    Beans
    14

    Creating launcher shortcut

    I am trying to use this to create a launcher icon for a script I have written that opens a group of files I commonly use for work, but when I tried the shortcut I got the following message "Details: Failed to execute child process "/usr/home/Documents/2D/2dscript.sh" (No such file or directory)".
    You can see the files and permissions in the screenshot.
    The script works when prompted in terminal.
    I cannot think of what is wrong pls help thanks.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by iain150; January 16th, 2013 at 09:31 PM. Reason: add something

  2. #2
    Join Date
    Jun 2007
    Beans
    13,469

    Re: Creating launcher shortcut

    Try (assuming blue is your user name
    Code:
    [Desktop Entry]
    Version=1.0
    Name=2D
    Comment=Opens all my 2D pdf files.
    Exec=/home/iain/Documents/2D/2dscript.sh
    Icon=screensaver
    Terminal=false
    Type=Application
    Categories=Utility;Application;
    (- for scripts here I just create a bin folder in my home folder to place them in. Then the Exec= is just Exec=scriptname
    (after a restart or sourcing .bashrc

    You could also probably lose the .sh, both in scriptname & Exec=

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •