If Debug then Error Register plugins; registering NCOS 1.06 apps and their filetypes comes next
||NB. This involves a hackish DW rewrite of Repeat...
If Debug then run bin:dwrepeat -dir root:plugins -boot -debug else run bin:dwrepeat -dir root:plugins -boot

If Debug then Error Set up environment vars for apps; running !Boot files comes next
If Debug then run bin:dwrepeat -dir root:appsconfig.106 -obey -debug else run bin:dwrepeat -dir root:appsconfig.106 -obey

If Debug then run bin:dwrepeat -dir root:appsconfig.shared -obey -debug else run bin:dwrepeat -dir root:appsconfig.shared -obey

If Debug then Error Run !Boot files for NC OS 1.06 user applications; shared apps come next
If debug then run bin:dwrepeat -dir root:apps.106.boot -boot -debug else run bin:dwrepeat -dir root:apps.106.boot -boot

If Debug then error Ditto for shared user applications; application startup comes next
If debug then run bin:dwrepeat -dir root:apps.shared.boot -boot -debug else run bin:dwrepeat -dir root:apps.shared.boot -boot

If Debug then error Run !Run files for NC OS 1.06 user applications which must be run at boot time; shared apps come next
If debug then run bin:dwrepeat -dir root:apps.106.run -run -debug else run bin:dwrepeat -dir root:apps.106.run -run

If Debug then error Ditto for shared user applications
If Debug then run bin:dwrepeat -dir root:apps.shared.run -run -debug else run bin:dwrepeat -dir root:apps.shared.run -run

If Debug then error Starting browser and login sequence
ifthere root:ncfresco.!ncfresco then set ncfresco$path root:ncfresco.!ncfresco.
ifthere root:ncfresco.!ncfresco then set ncfresco$dir root:ncfresco.!ncfresco

|| Start up the UI for the NC, according to which security system is in use
|| (note this is customisable on a per-NC basis, or all NCs can be the same...)
||
if login$status = "hardwire" then obey ncconfig:login.hardwire.run
if login$status = "smartcard" then desktop bin:!Sennen
if login$status = "login" then obey Boot:login
