The desktop
The desktop is what a person sees once logged on: wallpaper, icons, the taskbar, the Start menu and the tray. Behind it are three layers, each made and thrown away at a clear moment.
| Layer | Exists | Holds |
|---|---|---|
| Shell | While the page is open | What fills the screen: Welcome, desktop, locked, Turn Off |
| App services | Before anyone logs on | Logging on and off, remembered accounts on this browser |
| User session | From logon to Log Off | Settings, files, Messenger |
Nothing that belongs to one person is a global. It lives on the user session, which React
components reach through useUserSession(), useMessenger() and useUserSettings(). Log
Off saves pending settings, signs Messenger out and removes the person’s cached data from the
browser.
The screens
Section titled “The screens”ShellController (apps/web/src/system/shell/) decides what fills the screen:
- Welcome: tiles for the accounts remembered on this browser.
- Desktop: the logged-on session.
- Locked: the session ended elsewhere; type the password again to carry on.
- Open in another window: another tab has the desktop; Use here takes it.
- Turn Off: a black screen with a power button.
Desktop state lives in files
Section titled “Desktop state lives in files”The desktop’s icon positions, and which program shortcuts have already been placed, are kept
in a hidden desktop.ini in the person’s Desktop folder, next to the files they describe. Files
and folders in the Desktop folder show on the desktop after the program icons.
Demo mode
Section titled “Demo mode”With ?backend=mock the app services and Messenger use mock implementations
(MockAuthClient, MockClient, MemoryFileSystem) that run entirely in the browser. Every
interface with a mock has the same contract tests as the real one.