diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-11-16 14:42:40 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-11-16 14:42:40 +0000 |
commit | 17bc053fbfba41ea091de7b47a662d5784e1c473 (patch) | |
tree | e03daf5eb7fafcf053f67a45907c0745437b5d61 /amiga/filetype.c | |
parent | 52eb07dc5bca882473c5f14db299578ff144a1e4 (diff) | |
download | netsurf-17bc053fbfba41ea091de7b47a662d5784e1c473.tar.gz netsurf-17bc053fbfba41ea091de7b47a662d5784e1c473.tar.bz2 |
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
Diffstat (limited to 'amiga/filetype.c')
-rw-r--r-- | amiga/filetype.c | 9 |
1 files changed, 8 insertions, 1 deletions
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: |