[vte/wip/systemd: 2/5] pty: Document VTE_SPAWN_NO_PARENT_ENVV
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/systemd: 2/5] pty: Document VTE_SPAWN_NO_PARENT_ENVV
- Date: Tue, 4 Feb 2020 15:10:56 +0000 (UTC)
commit 829754a2d873c515d44ce066df8b5d33c00f8c59
Author: Christian Persch <chpe src gnome org>
Date: Tue Feb 4 16:10:26 2020 +0100
pty: Document VTE_SPAWN_NO_PARENT_ENVV
doc/reference/vte-sections.txt | 1 +
src/vtepty.cc | 11 +++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/doc/reference/vte-sections.txt b/doc/reference/vte-sections.txt
index 5ce2093e..fa8844b3 100644
--- a/doc/reference/vte-sections.txt
+++ b/doc/reference/vte-sections.txt
@@ -197,6 +197,7 @@ vte_pty_set_term
vte_pty_set_utf8
<SUBSECTION>
+VTE_SPAWN_NO_PARENT_ENVV
vte_pty_spawn_async
vte_pty_spawn_finish
diff --git a/src/vtepty.cc b/src/vtepty.cc
index 3c0d53e8..01d7d3eb 100644
--- a/src/vtepty.cc
+++ b/src/vtepty.cc
@@ -83,6 +83,17 @@ _vte_pty_get_impl(VtePty* pty)
#define IMPL(wrapper) (_vte_pty_get_impl(wrapper))
+/**
+ * VTE_SPAWN_NO_PARENT_ENVV:
+ *
+ * Use this as a spawn flag (together with flags from #GSpawnFlags) in
+ * vte_pty_spawn_async().
+ *
+ * Normally, the spawned process inherits the environment from the parent
+ * process; when this flag is used, only the environment variables passed
+ * to vte_pty_spawn_async() etc. are passed to the child process.
+ */
+
/**
* vte_pty_child_setup:
* @pty: a #VtePty
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]