vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| All the docs say that Nautilus scripts can be written in any scripting language, but this does not appear to be true - I think there is a list of allowed languages. If the first line of my script is #!/bin/bash then nautilus identifies it as a shell script; if the first line is #!/usr/bin/python then it's identified as a python script; but if the first line is #!/usr/bin/rexx then nautilus ignores it. Is there an editable list of valid programs? |
| |||
| On 2008-02-05, Bob Martin <[email protected]> wrote: > > > > All the docs say that Nautilus scripts can be written in any scripting > language, but this does not appear to be true - I think there is a > list of allowed languages. > > If the first line of my script is #!/bin/bash then nautilus identifies > it as a shell script; if the first line is #!/usr/bin/python then it's > identified as a python script; but if the first line is > #!/usr/bin/rexx then nautilus ignores it. > > Is there an editable list of valid programs? Is there a difference between a nautilus script and a script run from a shell prompt? Normally the kernel reads the #! line, and any interpreter should be allowed if it and the script have execute permission. What happens if you try to run a script with #!/usr/bin/rexx? |
| |||
| in 448685 20080205 135947 Bill Marcum <[email protected]> wrote: >On 2008-02-05, Bob Martin <[email protected]> wrote: >> >> >> >> All the docs say that Nautilus scripts can be written in any scripting >> language, but this does not appear to be true - I think there is a >> list of allowed languages. >> >> If the first line of my script is #!/bin/bash then nautilus identifies >> it as a shell script; if the first line is #!/usr/bin/python then it's >> identified as a python script; but if the first line is >> #!/usr/bin/rexx then nautilus ignores it. >> >> Is there an editable list of valid programs? > >Is there a difference between a nautilus script and a script run from a >shell prompt? >Normally the kernel reads the #! line, and any interpreter should be >allowed if it and the script have execute permission. What happens if >you try to run a script with #!/usr/bin/rexx? They work fine, I have hundreds of Rexx programs. Nautilus is obviously reading the first line and deciding it doesn't like it. |
| |||
| Bob Martin <[email protected]> wrote: > > All the docs say that Nautilus scripts can be written in any scripting language, > but this does not appear to be true - I think there is a list of allowed languages. > > If the first line of my script is #!/bin/bash then nautilus identifies it as a shell script; > if the first line is #!/usr/bin/python then it's identified as a python script; but if > the first line is #!/usr/bin/rexx then nautilus ignores it. > > Is there an editable list of valid programs? If I were writing a program like Nautilus I'd use "file" to identify files by type. Actually, I'd probably crib the underlying code from "file" using the same config file and such. Do a man on "file" and you can peruse the config file probably used. |
|
#5 (<a href="http://u |