From 529b863a529dda3c909878df3265d3246bcf2f3c Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Tue, 28 Mar 2017 19:27:16 +0100 Subject: [PATCH] Bug fix: Remote --tell output Make the output go where it is supposed to go --- src/remote.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remote.c b/src/remote.c index 3d11d227..fc7117e8 100644 --- a/src/remote.c +++ b/src/remote.c @@ -536,7 +536,10 @@ static void gr_file_tell(const gchar *text, GIOChannel *channel, gpointer data) 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) -- 2.20.1