Kiosk: --kiosk-hybrid keeps the desktop and locks only leaving the session
CI / test (push) Successful in 3m49s

Panel, launcher, dock, desktop module and shortcuts stay; Log out and power
actions are refused while locked. Admin escape and chandra-ctl kiosk work as
in the strict kiosk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DPL5hgvjzw8hHirxRsXSsE
This commit is contained in:
Claude committed 2026-11-26 02:38:02 +00:00
1 parent f0c39757d7
commit b4f7149c72
7 files changed
+115 -15

No files matched your search

+9 -1
View File
@@ -13,6 +13,7 @@ fn main {
let mut fullscreen = false
let mut restore = true
let mut kiosk : String? = None
let mut kiosk_hybrid = false
let mut app_id = "chandra"
let mut width = 1280
let mut height = 720
@@ -42,6 +43,13 @@ fn main {
kiosk = Some(args[i + 1]) // one fullscreen app, locked down (docs/kiosk.md)
restore = false
i = i + 2
} else if a == "--kiosk-hybrid" {
kiosk_hybrid = true // with --kiosk: keep the panel and the desktop, lock only leaving
if kiosk is None {
kiosk = Some("")
}
restore = false
i = i + 1
} else if a == "--app-id" && i + 1 < args.length() {
app_id = args[i + 1] // WM_CLASS of the X11 window
i = i + 2
@@ -162,7 +170,7 @@ fn main {
// chandra-ctl's socket (reload panel modules from a script); SIGUSR1 reloads too.
ignore(comp.start_control(@host.control_socket_path(@sys.getenv("XDG_RUNTIME_DIR"), socket_path)))
match kiosk {
Some(cmd) => comp.start_kiosk(cmd)
Some(cmd) => comp.start_kiosk(cmd, hybrid=kiosk_hybrid)
None => ()
}
if drm {