diff --git a/appvm/vm-file-editor.c b/appvm/vm-file-editor.c index 283bb3e1..dc72f3ba 100644 --- a/appvm/vm-file-editor.c +++ b/appvm/vm-file-editor.c @@ -51,23 +51,45 @@ main() char cmdbuf[512]; struct stat stat_pre, stat_post; char *filename = get_filename(); + int child, status, log_fd; copy_file(filename); if (stat(filename, &stat_pre)) { perror("stat pre"); exit(1); } - snprintf(cmdbuf, sizeof(cmdbuf), - "HOME=/home/user DISPLAY=:0 /usr/bin/mimeopen -n -M '%s' > /tmp/kde-open.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1 /tmp/kdialog.log 2>&1