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
@@ -62,6 +62,7 @@ pub fn run(args : Array[String]) -> Int {
let mut login = 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
@@ -97,6 +98,13 @@ pub fn run(args : Array[String]) -> Int {
kiosk = Some(args[i + 1]) // one fullscreen app, locked down
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]
i = i + 2
@@ -251,7 +259,7 @@ pub fn run(args : Array[String]) -> Int {
match kiosk {
Some(cmd) => {
@sys.log("kiosk mode" + (if cmd.length() > 0 { ": " + cmd } else { "" }))
comp.start_kiosk(cmd)
comp.start_kiosk(cmd, hybrid=kiosk_hybrid)
}
None => ()
}