From 581ad55c90102c9ac79a6068f125dcc2d84c3a3f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 20 May 2006 19:25:52 +0000 Subject: Improve handling of attempts to run NetSurf twice svn path=/trunk/netsurf/; revision=2604 --- !NetSurf/!Run,feb | 11 +++++++++++ !NetSurf/KickNS,ffb | Bin 0 -> 1511 bytes 2 files changed, 11 insertions(+) create mode 100644 !NetSurf/KickNS,ffb diff --git a/!NetSurf/!Run,feb b/!NetSurf/!Run,feb index 248f67678..130668174 100644 --- a/!NetSurf/!Run,feb +++ b/!NetSurf/!Run,feb @@ -9,6 +9,17 @@ Set NetSurf$ForceVars 1 .!Boot UnSet NetSurf$ForceVars +| Detect if NetSurf is already running and, if so, force the +| current instance to open a new window. Then stop this script. +Set Alias$NetSurfRunning UnSet Alias$NetSurfRunning|mUnSet NetSurf$Running|mObey +Set NetSurf$Running 0 +WimpSlot -min 64k -max 64k +/.KickNS +| If not running, then unset system variables and continue +If "" = "0" Then Set Alias$NetSurfRunning UnSet Alias$NetSurfRunning|mUnSet NetSurf$Running +| Invoke our alias to clean up +NetSurfRunning + | Resource Locations | The following are read-only locations SetMacro NetSurf$Path Choices:WWW.NetSurf.,. diff --git a/!NetSurf/KickNS,ffb b/!NetSurf/KickNS,ffb new file mode 100644 index 000000000..bc209ad02 Binary files /dev/null and b/!NetSurf/KickNS,ffb differ -- cgit v1.2.3