PDA

View Full Version : Help: doubleclick executable script gives warning.



Golyadkin
July 17th, 2007, 09:03 AM
I am programming some application in Python, and made a BASH script to execute it:

chmod +x PyBookcase


#!/usr/bin/bash

python PyBookcase-gui.py


Running it from the console works perfectly. But when I browse to the directory with Nautilus where the files are, and double click it, Nautilus warns me and asks if I want to open or display the file. How do I get rid of this? I want my end users to be able to just double click the script to start the program...

po0f
July 17th, 2007, 09:09 AM
Golyadkin,

Open up gconf-editor and navigate to apps->nautilus->preferences. Change 'executable_text_activation' from 'ask' to 'launch' and you should be good to go.

Or, open up a nautilus window and navigate to edit->preferences. Click the behavior tab and check "Run executable text files when they are clicked".

Golyadkin
July 17th, 2007, 09:20 AM
Thanks for the reply po0f, but is there no way to change this for the file and not for all files? Because I can't make this change on someone else's computer :)

syxbit
July 18th, 2007, 02:05 PM
no, it has to do with how nautilus treats it.
it's still a script