From 66f028839897efd285843af96cb3c090f7f5aaed Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Thu, 15 Dec 2011 22:59:15 +0000 Subject: Re-Enabled "View Source" svn path=/trunk/netsurf/; revision=13276 --- atari/ctxmenu.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'atari/ctxmenu.c') 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; -- cgit v1.2.3