I figured out the basics but not details of generating a
More Specification can be found here.
The mandatory (bare minimum) lines seem to be these:
The %u is (only) needed if you want to pass parameters to the script. There are also other possible entries such as
Comment=Test hello world script
X-Created-By= your name
In order to improve the ease of creating these, I provide this script:
echo "#!/usr/bin/env xdg-open
$3" > "$2"
You can use this script like this:
$ make_script_click_runnable.sh "path_of_file" "YourClickRunnableFile.desktop". (Depending on your link and file name, this usually also works without the quotes ".)
If you want to include the optional parameters, this could be a call you use:
$ make_script_click_runnable.sh "path_of_file" "YourClickRunnableFile.desktop" $"Name=My script\nComment=Test hello world script\nIcon=/home/user/youricon.png\nX-Created-By= your name". Using the
$3-parameter (see above), the optional ones are appended, but don't forget the
$Name=My Script\n... - I didn't find a more elegant way yet to resolve the
You can also use basically the same script to create "hyperlinks" to URLs, as http, only the
Type has to be changed and
URL is used instead of
Notice the standard-icon
text-html. For more details on that, please consider this answer on the respective question.