[gnome-desktop/wip/hadess/sandbox-flatpak-thumbnailer: 4/6] thumbnail: Add note about getting debug output from commands




commit 7a91d3347288c3a07c365ad4a1a7856508536237
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 9 13:33:41 2020 +0200

    thumbnail: Add note about getting debug output from commands

 libgnome-desktop/gnome-desktop-thumbnail-script.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/libgnome-desktop/gnome-desktop-thumbnail-script.c 
b/libgnome-desktop/gnome-desktop-thumbnail-script.c
index 387e5638..fea2ae0f 100644
--- a/libgnome-desktop/gnome-desktop-thumbnail-script.c
+++ b/libgnome-desktop/gnome-desktop-thumbnail-script.c
@@ -878,6 +878,8 @@ gnome_desktop_thumbnail_script_exec (const char  *cmd,
 
   print_script_debug (expanded_script);
 
+  /* NOTE: Replace the error_out argument with NULL, if you want to see
+   * the output of the spawned command and its children */
   ret = g_spawn_sync (NULL, expanded_script, NULL, G_SPAWN_SEARCH_PATH,
                      child_setup, exec->fd_array, NULL, &error_out,
                      &exit_status, error);


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