I want to launch a script (that ultimately launches an editor) with a single click in GNOME 2. To this end I have a script which sources the environment variables first and then ultimately launches the editor. The script looks something like:
#!/bin/sh
source variablesFile
editor $1
From the terminal I can easily launch the editor with:
$ ~/script myFile.txt
Now, what I want to achieve is have an icon in the taskbar/Desktop, from which I can double click and start typing, just like gedit.
I tried the following way:
but it did not work (mostly because the environment variables could not be changed).
I also tried:
but a terminal window flashed and went away. No idea what happened. Any clues?