[gimp/gimp-2-6] Bug 626020 - Console window opening on file-ps-load
- From: Michael Schumacher <schumaml src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] Bug 626020 - Console window opening on file-ps-load
- Date: Thu, 12 Aug 2010 20:17:56 +0000 (UTC)
commit 608a680240eb4a10e718cdb4ac8e17e70c695312
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 5640f75..8042779 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]