| Boot file for NetSurf. ( $Revision$ ) | | 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 | Filetype -> Type name mappings | | These get set whether they were previously set or not Set File$Type_695 GIF Set File$Type_AAD SVG 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 .Docs.docs_en Set NetSurf$Web "http://www.netsurf-browser.org/" Set NetSurf$Title "NetSurf" Set NetSurf$Publisher "The NetSurf Developers" Set NetSurf$Description "Web browser" | NetSurf Sprites | | The sprite file used is based on the OS and SpriteExtend versions: | RO <> 5 and SpriteExtend < 1.50 uses !Sprites | RO <> 5 and SpriteExtend >= 1.50 uses ASprites | RO = 5 uses 5Sprites Set NetSurf$Sprites .ASprites RMEnsure SpriteExtend 1.50 Set NetSurf$Sprites .!Sprites If (("" >= "500") AND ("" < "600")) Then IconSprites .5Sprites Else IconSprites Unset NetSurf$Sprites | Acorn URI protocol | | Format: Alias$Open_URI_ | | 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_ 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 (("" = "") OR ("" = "1")) Then Set Alias$Open_URI_http /.!Run -nowin If (("" = "") OR ("" = "1")) Then Set Alias$Open_URI_https /.!Run -nowin If (("" = "") OR ("" = "1")) Then Set Alias$Open_URI_file /.!Run -nowin | ANT URL protocol | | Format: Alias$URLOpen_ | | 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_ " and this is then fed to | Wimp_StartTask. If (("" = "") OR ("" = "1")) Then Set Alias$URLOpen_http /.!Run -url %%*0 If (("" = "") OR ("" = "1")) Then Set Alias$URLOpen_https /.!Run -url %%*0 If (("" = "") OR ("" = "1")) Then Set Alias$URLOpen_file /.!Run -url %%*0 | Claim HTML and URL files | | Format: Alias$@RunType_ | | Again, a fallback. The filer initially tries a DataOpen message. If that | bounces, it looks at these variables. If (("" = "") OR ("" = "1")) Then Set Alias$@RunType_FAF /.!Run -html %%*0 If (("" = "") OR ("" = "1")) Then Set Alias$@RunType_B28 /.!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.