From 17bc053fbfba41ea091de7b47a662d5784e1c473 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 16 Nov 2008 14:42:40 +0000 Subject: NetSurf will now check if it is already running (ie. if ARexx port NETSURF exists), and quit and send an OPEN command to the one in memory if this is the case. Setting files as projects of NetSurf is now possible, as is multi-select launching from Workbench. Multi-selects are not passed through using ARexx yet, only the first file in the list will be opened if NetSurf is already running. Plain text files which have no MIMETYPE tooltype are now correctly identified as text/plain instead of text/ascii, allowing them to be opened locally. svn path=/trunk/netsurf/; revision=5698 --- amiga/filetype.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'amiga/filetype.c') diff --git a/amiga/filetype.c b/amiga/filetype.c index 82e3f70d5..eec0fdd35 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -75,7 +75,14 @@ const char *fetch_filetype(const char *unix_path) break; case GID_TEXT: case GID_DOCUMENT: - sprintf(mimetype,"text/%s",dth->dth_BaseName); + if(strcmp("ascii",dth->dth_BaseName)==0) + { + sprintf(mimetype,"text/plain",dth->dth_BaseName); + } + else + { + sprintf(mimetype,"text/%s",dth->dth_BaseName); + } break; case GID_SOUND: case GID_INSTRUMENT: -- cgit v1.2.3