Historical: Linux-based prototype
Sessions
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
A session begins when you sign in and ends when you sign out. Session start, lock, sleep and sign out are implemented and tested in the disposable VM. Fast user switching, several seats and remote sessions are not.
How a session starts
Section titled “How a session starts”After a successful sign-in, greetd starts the desktop for your account. The desktop uses the system keyboard layout, or the default layout if that one cannot be used. It then connects to logind, the part of systemd that tracks sessions.
If the desktop cannot follow its logind session it ends. A session that cannot be locked is not allowed to run.
What the session reacts to
Section titled “What the session reacts to”| Event | Result |
|---|---|
| Lock requested | Locks |
| Unlock requested by a program | Ignored. Only the password unlocks |
| About to sleep | Locks, waits until the lock is on screen, then allows sleep |
| Another virtual terminal is shown | Locks |
| Sign out | Asks windows to close, then ends the session |
Signing out
Section titled “Signing out”The power menu and Ctrl+Alt+Delete open the same question. Cancel has the focus, so Enter alone does nothing. After confirming, every window gets a close request and a short time to close. A button labelled with the action and now skips the wait. Locking cancels the question. Then the session ends and the login screen appears again.
How it was tested
Section titled “How it was tested”Unit tests use a stand-in for logind. The VM suite signs in and out, locks, suspends and wakes, switches virtual terminals, and stops the compositor to check that the session ends and the login screen returns.
Known limitations
Section titled “Known limitations”- Fast user switching is not implemented. Sign out to change accounts.
- Several seats and remote sessions are not verified.
- The session settings are read at sign in, so a changed key repeat applies at the next sign in.
- A nested session, which runs as a window inside another desktop, shows power actions as unavailable.
- QEMU’s virtual machine resets on its own a while after waking from sleep. This is a limitation of that machine type, not of the session.