Author: jmb
Date: Sat May 20 20:25:52 2006
New Revision: 2604
URL:
http://svn.semichrome.net?rev=2604&view=rev
Log:
Improve handling of attempts to run NetSurf twice
Added:
trunk/netsurf/!NetSurf/KickNS,ffb (with props)
Modified:
trunk/netsurf/!NetSurf/!Run,feb
Modified: trunk/netsurf/!NetSurf/!Run,feb
URL:
http://svn.semichrome.net/trunk/netsurf/%21NetSurf/%21Run%2Cfeb?rev=2604&...
==============================================================================
--- trunk/netsurf/!NetSurf/!Run,feb (original)
+++ trunk/netsurf/!NetSurf/!Run,feb Sat May 20 20:25:52 2006
@@ -8,6 +8,17 @@
Set NetSurf$ForceVars 1
<Obey$Dir>.!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
+/<NetSurf$Dir>.KickNS
+| If not running, then unset system variables and continue
+If "<NetSurf$Running>" = "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
Added: trunk/netsurf/!NetSurf/KickNS,ffb
URL:
http://svn.semichrome.net/trunk/netsurf/%21NetSurf/KickNS%2Cffb?rev=2604&...
==============================================================================
Binary file - no diff available.
Propchange: trunk/netsurf/!NetSurf/KickNS,ffb
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream