[vte/wip/systemd: 2/3] 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/3] pty: Document VTE_SPAWN_NO_PARENT_ENVV
- Date: Sun, 2 Feb 2020 19:16:23 +0000 (UTC)
commit fa3569da680dab48c213295e8e1e7f5893d9fc26
Author: Christian Persch <chpe src gnome org>
Date: Sun Feb 2 20:11:25 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]