I have my custom script in Ruby with read permission, which starts with:
#!/usr/bin/env ruby
I can run that script from the terminal by typing that path. I added a file with .desktop
extention to /usr/share/applications
with content
[Desktop Entry]
Name=Foo
Comment=Foo
Exec=/path/to/the/script
Terminal=false
Type=Application
Categories=Utility;Application;
and permission 777. When I open the Ubuntu file/application searcher at the top-left corner, I find my script by typing in the name. But when I click on it, it does not run. What am I doing wrong?
I do not know what exactly is "content that I believe is appropriate". However, if you can run the script through terminal all you have to do is create a script with:
Make the script executable. Then in your .desktop file, launch the script instead of your command directly.
Example