[gimp] Bug 626020 - Console window opening on file-ps-load



commit fe7b253512a9286aa6ff6b24c873fa5d27342be7
Author: Michael Schumacher <schumaml gmx de>
Date:   Thu Aug 12 21:40:40 2010 +0200

    Bug 626020 - Console window opening on file-ps-load
    
    Added G_SPAWN_STDOUT_TO_DEV_NULL and G_SPAWN_STDERR_TO_DEV_NULL to the
    g_spawn_sync () flags. According to Tor Lillqvist this won't fix the bug,
    but the GLib docs state that these flags have to be added if stdout and
    stderr are set to NULL.

 plug-ins/common/file-ps.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index 2734d7b..975eef6 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -1748,7 +1748,9 @@ ps_open (const gchar      *filename,
 #else
 
   /* Use a real outputfile. Wait until ghostscript has finished */
-  flags = G_SPAWN_SEARCH_PATH;
+  flags = G_SPAWN_SEARCH_PATH |
+          G_SPAWN_STDOUT_TO_DEV_NULL |
+          G_SPAWN_STDERR_TO_DEV_NULL;
 
   if ( !g_spawn_sync (NULL,       /* working dir */
                       pcmdA,      /* command array */



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