CI / test (push) Failing after 16s
- New 'session-settings' capability (wit/capabilities.wit: settings, is-on, set-setting) and 'session-settings' panel module: a "Session" button whose popup lists the session settings, each with an on/off switch. Clicking a row flips it at once (the list stays open); Up/Down move the highlight, Enter or Space flips it, Escape or a click elsewhere closes. In the default panel, between Wallpaper and Log out. - Two settings to start with, kept in state.edn and written only when off (absent means on): "Reopen windows at login" (:restore-session, the key session restore already read) and "Remember window positions" (:remember-windows; when off, floating windows aren't placed where their app was left and new places aren't recorded, but the saved ones are kept). - Served by both hosts: wasmer stub (native; settings table 6, bit mask in host int 3, requests 10/11) and host-wasm (publish-session-settings, set-session-setting request). - Tests: native end-to-end (open, click both rows, keyboard, Escape), a state.edn round trip that checks both settings take effect, and a host-wasm module test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgxf6exeYrDGcy4WW3
99 lines
1.9 KiB
Plaintext
99 lines
1.9 KiB
Plaintext
package chandra:desktop@0.1.0;
|
|
|
|
/// Minimum every widget gets: theme tokens. Everything else is opt-in.
|
|
world widget {
|
|
import theme;
|
|
export plasmoid;
|
|
}
|
|
|
|
world clock-widget {
|
|
include widget;
|
|
import clock;
|
|
}
|
|
|
|
world launcher-widget {
|
|
include widget;
|
|
import app-catalog;
|
|
import app-launch;
|
|
}
|
|
|
|
world panel {
|
|
import theme;
|
|
export panel-layout;
|
|
}
|
|
|
|
/// Reference shell: panel + desktop background in one component.
|
|
world shell {
|
|
import theme;
|
|
export desktop-surface;
|
|
export panel-layout;
|
|
}
|
|
|
|
/// Desktop Pulse: reads machine state and the window list, and can raise a window.
|
|
world pulse-widget {
|
|
include widget;
|
|
import system;
|
|
import windows;
|
|
}
|
|
|
|
/// Panel task list: needs the window list.
|
|
world taskbar-widget {
|
|
include widget;
|
|
import windows;
|
|
}
|
|
|
|
/// Layout switcher.
|
|
world layout-widget {
|
|
include widget;
|
|
import layout-control;
|
|
}
|
|
|
|
/// Interface Explorer toggle.
|
|
world inspector-widget {
|
|
include widget;
|
|
import inspector;
|
|
}
|
|
|
|
/// Loads and unloads the system's wasm modules; the wasm picker opens this app.
|
|
world module-manager-widget {
|
|
include widget;
|
|
import modules;
|
|
}
|
|
|
|
/// Everything a panel module can be granted. The native host instantiates any module against this
|
|
/// one world (a module simply imports the subset it uses) and serves each import from the data the
|
|
/// compositor publishes (wit/host/plasmoids.wit).
|
|
world plasmoid-host {
|
|
import theme;
|
|
import clock;
|
|
import app-catalog;
|
|
import app-launch;
|
|
import windows;
|
|
import layout-control;
|
|
import inspector;
|
|
import modules;
|
|
import system;
|
|
import session;
|
|
import wallpaper;
|
|
import session-settings;
|
|
export plasmoid;
|
|
}
|
|
|
|
/// Logout button.
|
|
world logout-widget {
|
|
include widget;
|
|
import session;
|
|
}
|
|
|
|
/// Wallpaper chooser.
|
|
world wallpaper-widget {
|
|
include widget;
|
|
import wallpaper;
|
|
}
|
|
|
|
/// Session settings switches.
|
|
world session-settings-widget {
|
|
include widget;
|
|
import session-settings;
|
|
}
|