changeset 2465:58073aea8bc0

Bug fix: Remote --tell output Make the output go where it is supposed to go
author Colin Clark <cclark@mcb.net>
date Tue, 28 Mar 2017 19:27:16 +0100
parents a235aad08c32
children d286a43ba3b5
files src/remote.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/remote.c	Mon Mar 27 13:22:58 2017 +0100
+++ b/src/remote.c	Tue Mar 28 19:27:16 2017 +0100
@@ -536,7 +536,10 @@
 	LayoutWindow *lw = NULL; /* NULL to force layout_valid() to do some magic */
 	if (!layout_valid(&lw)) return;
 	if (image_get_path(lw->image))
-		printf_term("%s %s\n", GQ_APPNAME, image_get_path(lw->image));
+		{
+		g_io_channel_write_chars(channel, image_get_path(lw->image), -1, NULL, NULL);
+		g_io_channel_write_chars(channel, "\n", -1, NULL, NULL);
+		}
 }
 
 static void gr_config_load(const gchar *text, GIOChannel *channel, gpointer data)