[gnome-desktop/wip/hadess/sandbox-flatpak-thumbnailer: 3/5] thumbnail: Add note about getting debug output from commands
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-desktop/wip/hadess/sandbox-flatpak-thumbnailer: 3/5] thumbnail: Add note about getting debug output from commands
- Date: Fri,  9 Oct 2020 12:47:43 +0000 (UTC)
commit 21d6bf68d4ff59d5b885ad70ca5902ff5365d76f
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]