Gio.SubprocessLauncher.prototype.set_child_setup

function set_child_setup(child_setup: GLib.SpawnChildSetupFunc): void {
    // Gjs wrapper for g_subprocess_launcher_set_child_setup()
}
  

Sets up a child setup function.

The child setup function will be called after fork() but before exec() on the child's side.

destroy_notify will not be automatically called on the child's side of the fork(). It will only be called when the last reference on the Gio.SubprocessLauncher is dropped or when a new child setup function is given.

null can be given as child_setup to disable the functionality.

Child setup functions are only available on UNIX.

Since 2.40

child_setup

a GLib.SpawnChildSetupFunc to use as the child setup function