I have created a shell script on Desktop. Whenever I open it , I get a prompt to either run in terminal, display and etc. How to remove this prompt?
To run your script without having that dialog appear create a
.desktop file for it:
[Desktop Entry] Name=My script Comment="Whatever you want to see when you hover the mouse over the icon" Exec=/home/prosper/myscript.pl Icon=/home/prosper/myicon.gif Terminal=false Type=Application
Save the file on your
Desktop folder as
myscript.desktop, and make it executable:
chmod a+x ~/Desktop/myscript.desktop
It should now appear using the icon
/home/user/myicon.gif and you can run it by double clicking.