Add backlight control to the shell and regenerate WIT bindings
CI / test (push) Canceled after 0s

- Add compositor/shell/backlight.mbt for backlight control in the shell
- Update wit/capabilities.wit and wit/host/plasmoids.wit, then regenerate the component and interface ffi.mbt bindings (mostly export reordering)
- Add world/launcher-widget/README.md
This commit is contained in:
nandi committed 2026-11-28 02:16:07 -08:00
1 parent 2e00009c79
commit 74235cb0ca
84 files changed
+1525 -864

No files matched your search

+15 -4
View File
@@ -64,11 +64,22 @@ def find_pixi():
def make_env():
"""The root-owned pixi environment the helper and the PAM module run; its python3."""
pixi = find_pixi()
"""The Python environment the helper and PAM module run; its python3."""
sys_py = shutil.which("python3") or "/usr/bin/python3"
use_sys = "--system-python" in sys.argv
pixi = None if use_sys else find_pixi()
if not pixi:
sys.exit("pixi not found: install it (https://pixi.sh) or pass --pixi PATH; "
"`just install` passes the one on your PATH")
if os.access(sys_py, os.X_OK) and subprocess.run(
[sys_py, "-I", "-c", "import cv2, numpy"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
).returncode == 0:
print("using system Python", sys_py, "(OpenCV, numpy)")
return sys_py
if use_sys:
sys.exit("--system-python asked, but %s cannot import cv2, numpy" % sys_py)
sys.exit("pixi not found: install it (https://pixi.sh) or pass --pixi PATH, "
"or install system python-opencv + python-numpy and pass --system-python")
os.makedirs(env_dir, 0o755, exist_ok=True)
for f in ("pixi.toml", "pixi.lock"):
shutil.copyfile(os.path.join(here, f), os.path.join(env_dir, f))