[Gimp-developer] thumbnail generation for nautilus via gimp

Sven Neumann sven at gimp.org
Wed Dec 5 23:37:01 PST 2007


Hi,

On Thu, 2007-12-06 at 10:59 +1030, David Gowers wrote:

> In fact, all Gimp plugins are executables; when you call a plugin,
> GIMP runs it and communicates with it through a pipe. GIMP does not
> implement any special behaviour for .py files. That is why Python
> plugins must be executable.

In fact GIMP does implement special behavior for .py files. Or rather,
pygimp tells GIMP that files ending in .py should be executed by the
Python interpreter. This is what the third line in
$(prefix)/lib/gimp/2.0/interpreters/pygimp.interp does. The effect is
that you can omit the shebang (#!/usr/bin/python) if your plug-in's
filename has the .py suffix.

But you are right that all plug-ins must be executable. Files that don't
have the exectuable bit set are skipped when plug-ins are initialized.


Sven




More information about the Gimp-developer mailing list