[gnome-color-manager] Use the new ARGYLL_NOT_INTERACTIVE environment variable to better interact with the VTE widget



commit d0e3ffe9db6bd6c25d36a520961fb48840608db2
Author: Richard Hughes <richard hughsie com>
Date:   Tue May 25 16:04:56 2010 +0100

    Use the new ARGYLL_NOT_INTERACTIVE environment variable to better interact with the VTE widget

 src/gcm-calibrate-argyll.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index f3b3b5d..245b3f8 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -360,6 +360,7 @@ static gboolean
 gcm_calibrate_argyll_fork_command (GcmCalibrateArgyll *calibrate_argyll, gchar **argv, GError **error)
 {
 	gboolean ret;
+	const gchar *envp[] = { "ARGYLL_NOT_INTERACTIVE", NULL };
 	const gchar *working_directory;
 	GcmCalibrateArgyllPrivate *priv = calibrate_argyll->priv;
 
@@ -372,7 +373,7 @@ gcm_calibrate_argyll_fork_command (GcmCalibrateArgyll *calibrate_argyll, gchar *
 	ret = vte_terminal_fork_command_full (VTE_TERMINAL(priv->terminal),
 					      VTE_PTY_DEFAULT,
 					      working_directory,
-					      argv, NULL,
+					      argv, (gchar**)envp,
 #ifdef FIXED_ARGYLL
 					      0,
 #else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]