The shell (taunus-shell)
The shell draws home, recents, the lock screen, the on-screen keyboard, dialogs and the info banner. Apps and tools steer it through its control socket.
Control socket
$XDG_RUNTIME_DIR/taunus-shell.sock: one plain-text command per connection; the reply (if any) comes back.
taunus_core::control::send("open org.taunus.Alarm");
taunus-shell --open org.taunus.Alarm # the same from a shell
tdt ui open org.taunus.Alarm # from the PC
| Command | Does |
|---|---|
open APPID | open (or bring forward) an app |
settings [PAGE] | open Settings, on a page (wifi, bluetooth, display, …) |
home, recents, back | navigation (back: return to the app that opened this one, or home) |
lock, screenoff | |
keyboard show|hide|toggle | the on-screen keyboard |
hud volume | show the info banner |
wallpaper new | make a new wallpaper |
textsize N, animations on|off | apply a setting live |
key home|volume-up|volume-down|mute|power | a system key |
ring {"kind":…,"label":…}, ring-end | the alarm screen (taunus-clockd) |
state | the navigation state, lock state and windows (debugging) |
ping | pong |
Some commands are for the system only (developer …, factory-reset, update, setup-ending).
The control socket is a private interface between Taunus programs. It may change without notice.
//2bi: the shell offers a small public app API (org.taunus.Shell on D-Bus): open an app or a settings page, show
a toast, ask for the passcode. Commands that change the system (lock, factory-reset, developer) are not part
of it, and the shell checks who calls.
Passcode proof
A program that must know "is this really the user?" (before showing secrets, before a reset) asks the shell for a
signed proof. The shell shows the passcode screen; the passcode is checked by the root service taunus-authd,
which signs a token for this purpose and nonce. The program checks the token with the public key; nothing secret
is needed, and a token can't be reused for another purpose or replayed.
use taunus_core::attest;
let nonce = attest::new_nonce();
let token = attest::request("show-passwords", &nonce)?; // blocks until the user answers (≤ 2 min)
let proof = attest::verify(&token, "show-passwords", &nonce)?; // Err if forged, expired or for something else
Tokens expire after 60 s. A purpose (factory-reset, vault.open) is lower-case letters, digits, ., - and _; the nonce is 32–128 lower-case hex digits.