summaryrefslogtreecommitdiff
path: root/!NetSurf/!Boot,feb
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-09-27 05:21:00 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-09-27 05:21:00 +0000
commit5802723281ef8b6672e1c3f0e76c9b2a42bd22f9 (patch)
treed288162056410f45622e5c9291821a610efa3ad7 /!NetSurf/!Boot,feb
parentebc39ef41fb0407a58a66b740b143f299c526e31 (diff)
downloadnetsurf-5802723281ef8b6672e1c3f0e76c9b2a42bd22f9.tar.gz
netsurf-5802723281ef8b6672e1c3f0e76c9b2a42bd22f9.tar.bz2
[project @ 2004-09-27 05:21:00 by jmb]
Improve !Boot file and support protocol fallback positions. svn path=/import/netsurf/; revision=1287
Diffstat (limited to '!NetSurf/!Boot,feb')
-rw-r--r--!NetSurf/!Boot,feb81
1 files changed, 66 insertions, 15 deletions
diff --git a/!NetSurf/!Boot,feb b/!NetSurf/!Boot,feb
index b42526e65..578af5c6f 100644
--- a/!NetSurf/!Boot,feb
+++ b/!NetSurf/!Boot,feb
@@ -1,14 +1,37 @@
+| Boot file for NetSurf. ( $Revision: 1.10 $ )
+|
+| This file sets up various system variables which NetSurf may use.
+| Additionally, it places the NetSurf application sprites into the Wimp
+| sprite pool.
+|
+| This file may be executed in two ways:
+| 1. When NetSurf is first seen by the OS.
+| 2. When NetSurf is run by the user (called from the !Run file).
+| In the first instance, NetSurf-specific variables are set and non
+| NetSurf-specific variables which are unset are initialised.
+| In the second instance, all variables are set, irrespective of their
+| previous state. This is achieved by use of the NetSurf$ForceVars
+| variable, which is set by the !Run file prior to calling this file.
+
+| Set up NetSurf$Dir
Set NetSurf$Dir <Obey$Dir>
+| Filetype -> Type name mappings
+|
+| These get set whether they were previously set or not
Set File$Type_695 GIF
+Set File$Type_B28 URL
Set File$Type_B60 PNG
Set File$Type_C85 JPEG
Set File$Type_F78 JNG
Set File$Type_F79 CSS
Set File$Type_F83 MNG
+Set File$Type_F91 URI
Set File$Type_FAF HTML
| Application system variables
+|
+| See http://www.iyonix.com/32bit/help.shtml for more details.
Set NetSurf$Help <NetSurf$Dir>.Docs.docs_en
Set NetSurf$Version "Development Build"
Set NetSurf$Web "http://netsurf.sourceforge.net/"
@@ -17,21 +40,49 @@ Set NetSurf$Publisher "The NetSurf Developers"
Set NetSurf$Description "Web browser"
| NetSurf Sprites
+|
+| The sprite file used is based on the OS version:
+| RO < Select 3 uses !Sprites<nn>
+| RO >= Select 3 uses ASprites<nn>
+| RO >= 5 uses 5Sprites<nn>
If "<Boot$OSVersion>" < "436" Then IconSprites <Obey$Dir>.!Sprites Else If "<Boot$OSVersion>" < "500" Then IconSprites <Obey$Dir>.ASprites Else IconSprites <Obey$Dir>.5Sprites
| Acorn URI protocol
-If "<Alias$Open_URI_http>" = "" Then Set Alias$Open_URI_http <NetSurf$Dir>.URILaunch
-If "<Alias$Open_URI_https>" = "" Then Set Alias$Open_URI_https <NetSurf$Dir>.URILaunch
-If "<Alias$Open_URI_file>" = "" Then Set Alias$Open_URI_file <NetSurf$Dir>.URILaunch
-
-| ANT URI protocol
-| Not yet ;)
-|If "" = "<Alias$URLOpen_http>" Then Set Alias$URLOpen_http <NetSurf$Dir>.URILaunch %%*0
-|If "" = "<Alias$URLOpen_https>" Then Set Alias$URLOpen_https <NetSurf$Dir>.URILaunch %%*0
-|If "" = "<Alias$URLOpen_file>" Then Set Alias$URLOpen_file <NetSurf$Dir>.URILaunch %%*0
-
-| Claim HTML and URI files
-| Not Yet ;)
-|If "" = "<Alias$@RunType_FAF>" Then Set Alias$@RunType_FAF <NetSurf$Dir>.URILaunch
-|If "" = "<Alias$@RunType_B28>" Then Set Alias$@RunType_B28 <NetSurf$Dir>.URILaunch
-|If "" = "<FTPc$Dir>" Then If "<Alias$@RunType_F91>" = "" Then Set Alias$@RunType_F91 <NetSurf$Dir>.URILaunch
+|
+| Format: Alias$Open_URI_<scheme> <command to run>
+|
+| These are basically a last resort. The URI module will initially broadcast
+| Message_URI_MProcess. If this isn't claimed, then it'll check if an
+| appropriate Alias$Open_URI_<scheme> variable is set. If such a variable
+| exists, then it will attempt to launch the task named by the variable.
+| If the launch is successful, the Message_URI_MProcess is rebroadcast.
+| The -nowin is required to ensure only one window is opened (this only has
+| an effect if the user has configured auto window opening at startup).
+If (("<Alias$Open_URI_http>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$Open_URI_http <NetSurf$Dir>.!Run -nowin
+If (("<Alias$Open_URI_https>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$Open_URI_https <NetSurf$Dir>.!Run -nowin
+If (("<Alias$Open_URI_file>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$Open_URI_file <NetSurf$Dir>.!Run -nowin
+
+| ANT URL protocol
+|
+| Format: Alias$URLOpen_<scheme> <command to run>
+|
+| These handle the "load" stage of the protocol. The appropriate variable's
+| existence is checked then, if it is present, the URL to be opened is
+| appended to the string "URLOpen_<scheme> " and this is then fed to
+| Wimp_StartTask.
+If (("<Alias$URLOpen_http>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$URLOpen_http /<NetSurf$Dir>.!Run -url %%*0
+If (("<Alias$URLOpen_https>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$URLOpen_https /<NetSurf$Dir>.!Run -url %%*0
+If (("<Alias$URLOpen_file>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$URLOpen_file /<NetSurf$Dir>.!Run -url %%*0
+
+| Claim HTML and URL files
+|
+| Format: Alias$@RunType_<hex> <command to run>
+|
+| Again, a fallback. The filer initially tries a DataOpen message. If that
+| bounces, it looks at these variables.
+If (("<Alias$@RunType_FAF>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$@RunType_FAF /<NetSurf$Dir>.!Run -html %%*0
+If (("<Alias$@RunType_B28>" = "") OR ("<NetSurf$ForceVars>" = "1")) Then Set Alias$@RunType_B28 /<NetSurf$Dir>.!Run -urlf %%*0
+
+| We don't claim the URI filetype as the spec tells us not to:
+| "Applications must not set an Alias$@RunType variable for the URI filetype"
+| Obviously this means that Browse/Phoenix and the Oreganos are incorrect.