With gimp-2.0 I cannot get gimp script-fu working from the cmdline:

(define (script-fu-fileload txt)
   (gimp-message "1")
   (gimp-message txt)
   (gimp-message "2"))

   ; Finally register our script with script-fu.

(script-fu-register "script-fu-fileload"
      "dummy description"
      "Norbert Preining"
      "Norbert Preining"
      SF-STRING "Dummy Text"    "Hello World")

This simple script DOES work in the GUI (it outputs three
windows with "1" "2" and "Hello World").

But on the cmdline:
gimp --no-data -i --verbose -b '(script-fu-fileload 0 "foobar")' 

does not work.

In fact no combination of 
        (script-fu-fileload 0 "\"foobar\"")
        (script-fu-fileload 1 "\"foobar\"")
        (script-fu-fileload 0 "foobar")
        (script-fu-fileload 1 "foobar")
works on the cmd line.

The output is always:
INIT: gimp_load_config
Parsing '/etc/gimp/2.0/gimprc'
Parsing '/home/norbert/.gimp-2.0/gimprc'
INIT: gimp_initialize
INIT: gimp_real_initialize
INIT: gimp_restore
INIT: gimp_real_restore
Starting extension: 'extension_script_fu'
script-fu: 1

batch command: experienced an execution error.
EXIT: gimp_exit
EXIT: gimp_real_exit
EXIT: batch_exit_after_callback

Thanks a lot for any hints.

Best wishes


Norbert Preining <preining AT logic DOT at>         Technische Universitšt Wien
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
The bluebottle one is too tired to get up and start, but not tired
enough to sleep through.
                        --- Douglas Adams, The Meaning of Liff
Gimp-user mailing list

Reply via email to