[gnome-terminal/gnome-3-38] nautilus: Pass environment when creating a terminal in the current directory



commit 4b6051dacee101f323669ecf1ec65d87122b208c
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
    (cherry picked from commit c42d9ccf31923f2b1e2eb59c40b48bf196846c7a)

 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]