Assuming it's a python script you're running, create a file in the directory I mention with .desktop extension.
yourscript.desktop for an example and the contents should be something like that:
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=myscipt
Comment=Exec=sudo python /home/pi/myscipt.py
StartupNotify=false
Terminal=false
Hidden=false
This might come handy also about the .desktop sepc:
http://linuxcritic.wordpress.com/2010/0 ... ktop-file/