[gimp] Issue #2716 - Windows: Rawtherapee plugin cannot be installed



commit 9e82ace409a477cc29f6c66b14f00ffe4949f867
Author: gaaned92 <gaaned92 gmail com>
Date:   Sat Dec 29 22:56:27 2018 +0100

    Issue #2716 - Windows: Rawtherapee plugin cannot be installed
    
    On Windows, prevent RawTherapee from opening a console window

 plug-ins/file-raw/file-rawtherapee.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/plug-ins/file-raw/file-rawtherapee.c b/plug-ins/file-raw/file-rawtherapee.c
index 1199f82673..40ef04ba09 100644
--- a/plug-ins/file-raw/file-rawtherapee.c
+++ b/plug-ins/file-raw/file-rawtherapee.c
@@ -97,7 +97,12 @@ init (void)
                                                              "com.rawtherapee.rawtherapee",
                                                              REGISTRY_KEY_BASE,
                                                              &search_path);
+#ifdef G_OS_WIN32
+  /* Issue #2716 - Prevent RT from opening a console window */
+  gchar    *argv[]             = { exec_path, "-v", "-w", NULL };
+#else
   gchar    *argv[]             = { exec_path, "-v", NULL };
+#endif
   gchar    *rawtherapee_stdout = NULL;
   gboolean  have_rawtherapee   = FALSE;
   gint      i;


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