about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorPierre Mazière <pierre.maziere@gmx.com>2020-05-24 16:38:56 +0200
committerPierre Mazière <pierre.maziere@gmx.com>2020-06-03 13:09:29 +0200
commitd92c576aa53505d712715b1acc6344af3262c84f (patch)
tree9e7215751fb9c7b185115a816be5002ce3ecc1a9 /src/xmpp
parentf1fe18b47442aed5a0b427bc9450bd7111ec7314 (diff)
downloadprofani-tty-d92c576aa53505d712715b1acc6344af3262c84f.tar.gz
Get output and error streams from the command spawned by external_call()
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/avatar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xmpp/avatar.c b/src/xmpp/avatar.c
index 701d6cb7..c5b44411 100644
--- a/src/xmpp/avatar.c
+++ b/src/xmpp/avatar.c
@@ -266,7 +266,10 @@ _avatar_request_item_result_handler(xmpp_stanza_t *const stanza, void *const use
 
     // if we shall open it
     if (g_hash_table_contains(shall_open, from_attr)) {
-        call_external(prefs_get_string(PREF_AVATAR_CMD), filename->str);
+        gchar *argv[] = {prefs_get_string(PREF_AVATAR_CMD), filename->str, NULL};
+        if (!call_external(argv, NULL, NULL)) {
+          cons_show_error("Unable to display avatar: check the logs for more information.");
+        }
         g_hash_table_remove(shall_open, from_attr);
     }