Gimp.getpid

function getpid(): Number(gint) {
    // Gjs wrapper for gimp_getpid()
}
  

Returns the PID of the host GIMP process.

This procedure returns the process ID of the currently running GIMP.

Since 2.4

Returns

The PID.