From d60198d551e016d7bf2da746966a409fc911f36e Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Mon, 2 Jan 2012 04:00:54 +0100 Subject: [PATCH] vm/file-editor: include exit code in error message --- appvm/vm-file-editor.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/appvm/vm-file-editor.c b/appvm/vm-file-editor.c index ab28693..533c363 100644 --- a/appvm/vm-file-editor.c +++ b/appvm/vm-file-editor.c @@ -110,13 +110,16 @@ main() default: waitpid(child, &status, 0); if (status != 0) { + char cmd[512]; #ifdef USE_KDIALOG - system - ("HOME=/home/user DISPLAY=:0 /usr/bin/kdialog --sorry 'Unable to handle mimetype of the requested file!' > /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1