Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have written a script:

for FILE in *.svg
 do
  inkscape --file=$FILE --export-area-page --without-gui --export-pdf=${FILE%.*}.pdf
 done

which converts all SVG files in a directory to PDF. Whenever I run it from Nautilus (after making it executable), the latter asks me if I want the script to be run or displayed. I always want it run, not displayed. Can I achieve this?

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

Launch nautilus and go to Preferences->Behavior, you will find your choices.

Equivalentely, launch gconf-editor and set the value of the key

/apps/nautilus/preferences/executable_text_activation

to launch.

Alternatively, create a launcher pointing to your script, and make it executable. This option is better, because involve the single script and not all executable text files.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.