Log inGet started
What it does

desktop_config

Layout config for the desktop shell UI. Holds the shortcut definitions, the virtual filesystem tree shown by My Computer, and shared constants (taskbar height, default icons, double-click window). Pure data with a single lookup helper; no engine calls, no module state.

Exports

  • M.findShortcut(shortcutId: string) -> Shortcut? — linear-scan M.SHORTCUTS for the matching entry; returns nil if no shortcut has that id.
  • M.SHORTCUTS: { Shortcut } — ordered desktop shortcut definitions (id, label, icon, position, optional world/action).
  • M.VFS: { [string]: { VfsEntry } } — virtual filesystem tree keyed by path ("/", "/apps", "/home", ...).
  • M.TASKBAR_HEIGHT: number, M.DOUBLE_CLICK_WINDOW_SECONDS: number, M.ICON_FOLDER: string, M.ICON_FILE: string — shared layout/icon constants.

Types:

  • Shortcut = { id, label, icon, icon_src, kind, x, y, width, height, world?, action? }
  • VfsEntry = { name, kind, icon_src?, content?, world?, app_id? }

Usage

local DesktopConfig = require("@builtin::modules.desktop_config")

for _, shortcut in ipairs(DesktopConfig.SHORTCUTS) do
    print(shortcut.id, shortcut.label)
end

local entry = DesktopConfig.findShortcut("my_computer")

Notes

  • Tables on M are mutable references — callers can patch them at boot before the desktop shell renders, but mutating them at runtime won't re-render anything on its own.
  • findShortcut is a linear scan over M.SHORTCUTS; fine for the current ~9-entry list, not a hot-path helper.
  • M.VFS is keyed by normalised path (no trailing slash except for /); consumers should normalise lookups via path_utils.normalizePath.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

0items
This part has no composite children. See the Files segment for its leaf payloads.
This part has no leaf payloads.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.