[SOLVED] Annoying message: Do you want to run "xyz.sh", or display its contents?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Linux Mint 13 Cinnamon Edition 64-bit, Windows 7 Home Premium SP1 64-bit, Arch Linux 32-bit
Annoying message: Do you want to run "xyz.sh", or display its contents?
So I have this certain game that I like to play, but it requires the disc. I've made an iso of the disc and made a bash script that mounts the image, starts the game, and unmounts the image when the game is closed. The problem is that every time I try to run the script, I get this message:
Do you want to run "thescript.sh", or display its contents?
"thescript.sh" is an executable text file.
The script is marked as executable and I've run it several times, but each time, I'm prompted with this annoying message. I also have to type in my password since I'm mounting/unmounting a filesystem. Why the mount command needs root priveliges when you can just click mount in nemo without root is beyond me, but that's a different issue. How can I disable this message. It only appears when I open scripts that I created.
I'm not familiar with what the default file manager is in Linux Mint, but in nautilus, you can open the Edit->Preferences dialog and select the "Behavior" tab. The options under "Executable Text Files" allow you to select "Run", "View", or "Ask" (the default).