Skip to main content

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
CommandDoes
open APPIDopen (or bring forward) an app
settings [PAGE]open Settings, on a page (wifi, bluetooth, display, …)
home, recents, backnavigation (back: return to the app that opened this one, or home)
lock, screenoff
keyboard show|hide|togglethe on-screen keyboard
hud volumeshow the info banner
wallpaper newmake a new wallpaper
textsize N, animations on|offapply a setting live
key home|volume-up|volume-down|mute|powera system key
ring {"kind":…,"label":…}, ring-endthe alarm screen (taunus-clockd)
statethe navigation state, lock state and windows (debugging)
pingpong

Some commands are for the system only (developer …, factory-reset, update, setup-ending).

caution

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.