summaryrefslogtreecommitdiff
path: root/atari/ctxmenu.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-12-15 22:59:15 +0000
committerOle Loots <ole@monochrom.net>2011-12-15 22:59:15 +0000
commit66f028839897efd285843af96cb3c090f7f5aaed (patch)
treee5fd25853c74710eacb31adaeed9d7f10cad6f69 /atari/ctxmenu.c
parent3eb8e6ad5de3f4da3a983ded355fdcbfe86a87d9 (diff)
downloadnetsurf-66f028839897efd285843af96cb3c090f7f5aaed.tar.gz
netsurf-66f028839897efd285843af96cb3c090f7f5aaed.tar.bz2
Re-Enabled "View Source"
svn path=/trunk/netsurf/; revision=13276
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;