summaryrefslogtreecommitdiff
path: root/atari/ctxmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'atari/ctxmenu.c')
-rw-r--r--atari/ctxmenu.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/atari/ctxmenu.c b/atari/ctxmenu.c
index 4eb558187..76001ff39 100644
--- a/atari/ctxmenu.c
+++ b/atari/ctxmenu.c
@@ -253,17 +253,22 @@ void context_popup( struct gui_window * gw, short x, short y )
if( fp_tmpfile ){
fwrite( data, size, 1, fp_tmpfile );
fclose( fp_tmpfile );
+
// TODO: check if app is runnin, if not, use pexec or such.
/*sprintf((char*)&cmdline, "%s \"%s\"", option_atari_editor, tempfile );
system( (char*)&cmdline );
*/
- //err = ShelWrite( option_atari_editor, tempfile , option_atari_editor, 1, 0);
- LOG(("launched: %s %s (%d)\n", option_atari_editor, tempfile, err ));
+ err = ShelWrite( option_atari_editor, tempfile , option_atari_editor, 1, 0);
+ LOG(("Launched: %s %s (%d)\n", option_atari_editor, tempfile, err ));
+ } else {
+ printf("Could not open temp file: %s!\n", tempfile );
}
+ } else {
+ LOG(("Invalid content!"));
}
} else {
- LOG(("Please set option_atari_editor!"));
+ printf("Please set option_atari_editor!");
}
break;