summaryrefslogtreecommitdiff
path: root/amiga/arexx.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-16 14:42:40 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-16 14:42:40 +0000
commit17bc053fbfba41ea091de7b47a662d5784e1c473 (patch)
treee03daf5eb7fafcf053f67a45907c0745437b5d61 /amiga/arexx.c
parent52eb07dc5bca882473c5f14db299578ff144a1e4 (diff)
downloadnetsurf-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/arexx.c')
-rwxr-xr-xamiga/arexx.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/amiga/arexx.c b/amiga/arexx.c
index 6a85510e0..28164afc8 100755
--- a/amiga/arexx.c
+++ b/amiga/arexx.c
@@ -47,7 +47,7 @@ STATIC struct ARexxCmd Commands[] =
{ NULL, 0, NULL, NULL, 0, NULL, 0, 0, NULL }
};
-void ami_arexx_init(void)
+BOOL ami_arexx_init(void)
{
if(arexx_obj = ARexxObject,
AREXX_HostName,"NETSURF",
@@ -58,6 +58,20 @@ void ami_arexx_init(void)
End)
{
GetAttr(AREXX_SigMask, arexx_obj, &rxsig);
+ return true;
+ }
+ else
+ {
+/* Create a temporary ARexx port so will can send commands to the NetSurf which
+ * is already running */
+ arexx_obj = ARexxObject,
+ AREXX_HostName,"NETSURF",
+ AREXX_Commands,Commands,
+ AREXX_NoSlot,FALSE,
+ AREXX_ReplyHook,NULL,
+ AREXX_DefExtension,"nsrx",
+ End;
+ return false;
}
}