[gnome-terminal] nautilus: Pass environment when creating a terminal in the current directory
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] nautilus: Pass environment when creating a terminal in the current directory
- Date: Fri, 25 Dec 2020 17:01:52 +0000 (UTC)
commit c42d9ccf31923f2b1e2eb59c40b48bf196846c7a
Author: Christian Persch <chpe src gnome org>
Date: Fri Dec 25 18:01:12 2020 +0100
nautilus: Pass environment when creating a terminal in the current directory
Fixes: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/303
src/terminal-client-utils.c | 3 +++
src/terminal-nautilus.c | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/terminal-client-utils.c b/src/terminal-client-utils.c
index f7fb6a81..e9292810 100644
--- a/src/terminal-client-utils.c
+++ b/src/terminal-client-utils.c
@@ -102,7 +102,10 @@ terminal_client_append_create_instance_options (GVariantBuilder *builder,
/**
* terminal_client_append_exec_options:
* @builder: a #GVariantBuilder of #GVariantType "a{sv}"
+ * @pass_environment: whether to pass the current environment
* @working_directory: (allow-none): the cwd, or %NULL
+ * @fd_array: (array lenght=fd_array_len):
+ * @fd_array_len:
* @shell:
*
* Appends the environment and the working directory to @builder.
diff --git a/src/terminal-nautilus.c b/src/terminal-nautilus.c
index 60e48f0d..6e9a341a 100644
--- a/src/terminal-nautilus.c
+++ b/src/terminal-nautilus.c
@@ -370,7 +370,7 @@ create_terminal (ExecData *data /* transfer full */)
g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
terminal_client_append_exec_options (&builder,
- FALSE,
+ TRUE, /* pass environment */
data->path,
NULL, 0, /* FD array */
TRUE /* shell */);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]