LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
/* js_sys.h — system APIs exposed to JS (files, system, settings, themes). */
#ifndef LORD_JS_SYS_H
#define LORD_JS_SYS_H
#include "quickjs.h"
void js_sys_init(void); /* takes $HOME (already unprivileged) */
void js_sys_register(JSContext *c, JSValue lord);
/* Process of an isolated app: only lord.text and lord.image (drawing and text direction). */
void js_sys_register_app(JSContext *c, JSValue lord);
void js_sys_set_greeter(int on); /* login screen theme: lord.greeter */
void js_sys_set_assets(const char *dir); /* assets/ folder (language catalogs) */
const char *js_sys_assets(void); /* for src: 'asset:icons/x.png' */
void js_sys_cpu_name(char *out, size_t size); /* processor (x86 or ARM; the Monitor uses it too) */
/* Valid destination path for writing (home folder or user mounts, never the
* protected folders): 0 if it is OK; out receives the real path. */
int js_sys_resolve_target(const char *path, char *out, size_t n);
#endif