Running a script from desktop.. No prompt?

I made a very simple script that I intend to use a lot. So I made a link to it and put it on the desktop. But everytime I click it it prompts me and says “Do you want to run or display its contents.” Is there a way to get rid of that prompt? So that it just runs the script as soon as I click it?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

By a link do you mean a softlink or a “Launcher”? You could also put
the script in your user’s own ‘bin’ directory (under your home
directory) and then you can use Alt+F2 to call it quickly.

Good luck.

glopal wrote:
> I made a very simple script that I intend to use a lot. So I made a link
> to it and put it on the desktop. But everytime I click it it prompts me
> and says “Do you want to run or display its contents.” Is there a way to
> get rid of that prompt? So that it just runs the script as soon as I
> click it?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJJ6Qp3s42bA80+9kRAqWZAJwIfglhpT2YN3YAKXqMLcjqG5gOfgCggz6J
/TmlOmlFnq9KkoE66DbtP7Q=
=uusj
-----END PGP SIGNATURE-----

Put the script file itself into ~/Desktop directory.

If you are using Gnome, there is a global option in nautilus for that.
Open nautilus, then choose Edit->Preferences, and click in behavior tab, then you will see it.
Be careful however, because this options will affect to all scripts opened trough nautilus, not only that one in your desktop.

Thanks. That did what I wanted. :smiley: