Gio.SubprocessLauncher.set_stdin_file_path

### Method

# Gio SubprocessLauncherset_stdin_file_path

since: 2.40

#### Declaration

    void
    g_subprocess_launcher_set_stdin_file_path (
      GSubprocessLauncher* self,
      const gchar* path
    )

#### Description

Sets the file path to use as the stdin for spawned processes.

If `path` is `NULL` then any previously given path is unset.

The file must exist or spawning the process will fail.

You may not set a stdin file path if a stdin fd is already set or if the launcher flags contain any flags directing stdin elsewhere.

This feature is only available on UNIX.

Available since: 2.40

#### Parameters

`path`

  Type: `const gchar*`

  A filename or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.
  The value is a file system path, using the OS encoding.