This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch headless-session
in repository enlightenment.
View the commit online.
commit 9724836b80972761c9b1d2609bccc4ce65c7a4e6
Author: Cedric BAIL <[email protected]>
AuthorDate: Tue Dec 1 22:21:25 2026 -0600
README - say how to run Enlightenment headless
The headless backend and the entry points a module uses to export the
screen, feed input and share the clipboard are in, with nothing to tell
a packager or a module author how a session is started or what to
expect of it.
Say how to start one, and what E needs for that: a D-Bus session bus, an
XDG_RUNTIME_DIR, a profile without the first-run wizard, no DISPLAY.
Say that E_MODULE_FORCE_LOAD adds the module to the configuration for
later starts, how clients find the socket, and how to stop it. Say what
a module can call, the two behaviours of rendering that the tests pin
with a frame listener attached (the screensaver stops frames until input,
a fullscreen client does not), and that a module not shipped with E
brings up the usual unstable module notice.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
---
README.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/README.md b/README.md
index 77b65c2bf..bf8aaf2e6 100644
--- a/README.md
+++ b/README.md
@@ -223,3 +223,66 @@ OpenGL+GLX with EFL instead of the default OpenGL-ES/EGL for those to not
have problems and this conflicts with any **DRM** and **Wayland** support.
You will
+
+-----
+
+## Running headless
+
+With Wayland support built (`-Dwl=true`), Enlightenment can run as a
+compositor that has no screen, for a remote desktop server, a screen
+recorder or a test. The `wl_buffer` backend draws in memory with the
+software engine, on one virtual output called `VIRTUAL-1`. Nothing shows
+that picture, or feeds input to it, without a module that does: E only
+offers the means (below).
+
+Start it from a unit or a login shell of your own:
+
+```sh
+E_WL_FORCE=buffer E_COMP_SIZE=1920x1080 E_MODULE_FORCE_LOAD=mymodule enlightenment_start
+```
+
+* `E_COMP_SIZE` is `WxH` and defaults to 1024x768.
+* `E_MODULE_FORCE_LOAD` is a comma separated list of modules to load on top
+ of the configured ones. A path must be absolute and end in `.so`. A name
+ is looked up as `<name>/<arch>/module.so` in `~/.e/e/modules`, then
+ `<libdir>/enlightenment/modules` and `modules_extra`, then in the paths
+ added in the configuration. It is not for one run only: E adds the
+ module to its configuration, so the next start loads it without the
+ variable (modules named `wl_*` are not kept).
+* D-Bus: `enlightenment_start` runs itself under `dbus-launch` when
+ `DBUS_SESSION_BUS_ADDRESS` is not set, and E stops with an error without
+ a session bus unless `E_NO_DBUS_SESSION=1`.
+* `XDG_RUNTIME_DIR` must be set, a directory you own with mode 0700. A
+ directory of its own is a convenience: the socket is `wayland-N` in it,
+ and E does not export `WAYLAND_DISPLAY`, so clients need the same
+ `XDG_RUNTIME_DIR` and `WAYLAND_DISPLAY=wayland-N` in their environment.
+* A fresh home starts the first-run wizard, as the default profile enables
+ no other module. Its dialogs are drawn into the buffer and wait for input
+ that only your module can deliver, so start from a prepared `~/.e` or
+ with `E_CONF_PROFILE=standard`, which has no wizard.
+* Unset `DISPLAY`: when it is set the xwayland module does not start, and
+ the keyboard layout is applied with `setxkbmap` to that X server.
+* Stop it with SIGTERM to `enlightenment_start`: E asks to be sent SIGTERM
+ when its parent goes away.
+
+What a module can use, all `E_API` of the installed headers:
+
+* `e_comp_wl.h`: `e_comp_wl_virtual_output_set()` resizes the output and
+ sets its scale while E runs. Other backends refuse it.
+* `e_comp_wl_input.h`: `e_comp_wl_input_inject_pointer_motion()`, `_button()`,
+ `_axis()`, `_key()` and `_touch()` do what an input backend does.
+* `e_comp_canvas.h`: `e_comp_canvas_frame_listener_add()` calls back after
+ each frame E renders, with its damage and, on this backend, its pixels.
+* `e_comp_wl_data.h`: `e_comp_wl_data_selection_offer_add()`, `_watch_add()`
+ and `_read()` offer, watch and read the clipboard.
+
+Two things hold with a frame listener attached, and are tested. Once the
+screensaver has blanked the screen, E renders no frames until input
+arrives, whatever the clients commit; injected pointer motion or keys wake
+it, and the next frame shows what the clients committed meanwhile. A
+client that goes fullscreen does not stop the frames, as it can on X11.
+
+A module that is not shipped with Enlightenment makes it show the
+"Unstable module tainting" notice in the session, as in any other
+session, under its full path when it was loaded by path. "I know" in it
+keeps the module from being listed again.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.