http://askubuntu.com/questions/141229/how-to-add-a-shell-script-to-launcher-as-shortcut

First hit via google. But the os and window manager you are using would be helpful.

On Monday, December 16, 2013, wrote:
Can In see the script?
I execute shell scripts from GUIs all day long...
ET


David Lopez writes:
oh wise men
have an executable bash script.
can execute it using terminal window - no issues.
when i copy the script from the bin dir to desktop, the execute it from
there by
double clicking on the file name (with a made up icon), it displays buttons:
  a) run in terminal
  b) run
  c) display
  d) cancel
using either a) or b) above, the program terminates just after a few bytes
of output.
tried it several times. even tried it when an empty terminal was on the
screen.
any ideas?
david
--
David López
Software Engineer
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss


--
A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.

Stephen