Kiosk mode: --kiosk CMD runs one fullscreen app, locked down, restarted when it exits
CI / test (push) Successful in 4m10s
CI / test (push) Successful in 4m10s
No panel, no compositor shortcuts or desktop menus, the focused window fullscreen (dialogs float), CMD restarted with backoff. Ctrl+Alt+Shift+Escape or chandra-ctl kiosk lock|unlock|status for admin work. --app-id sets the X11 WM_CLASS / Wayland app id of Chandra's own window. scripts/gamerig-kiosk.sh runs Chandra as a gamerig rig's library window on its NVIDIA Xorg. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hgvjzw8hHirxRsXSsE
This commit is contained in:
11 files changed
+635
-16
No files matched your search
@@ -209,6 +209,7 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
|
||||
"ping check the compositor answers", "list loaded panel modules: slot, module, path",
|
||||
"reload load every panel module again from disk", "reload NAME only the modules whose name, slot or path is NAME",
|
||||
"shortcut ID do what shortcut ID does (launcher, overview, show-desktop, ...)",
|
||||
"kiosk [lock|unlock|status] kiosk mode (--kiosk): lock it down or unlock it for admin work",
|
||||
"ok",
|
||||
],
|
||||
true,
|
||||
@@ -254,6 +255,23 @@ pub fn ChandraCompositor::control_command(self : ChandraCompositor, line : Strin
|
||||
}
|
||||
(["error no shortcut '" + words[1] + "'"], false)
|
||||
}
|
||||
"kiosk" => {
|
||||
let arg = if words.length() >= 2 { words[1] } else { "status" }
|
||||
match (self.kiosk, arg) {
|
||||
(None, _) => (["error not in kiosk mode (start with --kiosk)"], false)
|
||||
(Some(k), "status") =>
|
||||
(["ok " + (if k.locked { "locked" } else { "unlocked" }) + " starts=" + k.starts.to_string() + " cmd=" + k.cmd], true)
|
||||
(Some(_), "lock") => {
|
||||
ignore(self.set_kiosk_locked(true))
|
||||
(["ok locked"], true)
|
||||
}
|
||||
(Some(_), "unlock") => {
|
||||
ignore(self.set_kiosk_locked(false))
|
||||
(["ok unlocked"], true)
|
||||
}
|
||||
_ => (["error usage: kiosk [lock|unlock|status]"], false)
|
||||
}
|
||||
}
|
||||
other => (["error unknown command '" + other + "' (try: help)"], false)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user