- Lock the session from the power button or `chandra-ctl lock` - Unlock with a face or the password; the password always works - Add compositor lock module with tests, and a polkit unlock policy (org.chandra.unlock) - Document the lock flow in docs/lock.md and link it from the README - Add generated interface bindings for the compositor and widget components
This commit is contained in:
1 parent
7501fc3ad9
commit
c790f96e58
131 files changed
+4693
-274
No files matched your search
@@ -234,6 +234,17 @@ pub fn describe(req : AuthRequest, cmdline? : (Int) -> Array[String] = proc_cmdl
|
||||
details,
|
||||
}
|
||||
}
|
||||
// Session unlock: clear lock-screen wording instead of the generic system-action fallback.
|
||||
if req.action_id == "org.chandra.unlock" {
|
||||
add("Action", req.action_id)
|
||||
return {
|
||||
title: "Screen locked",
|
||||
subtitle: "Look at the camera or enter your password to unlock.",
|
||||
command: "",
|
||||
program: "",
|
||||
details,
|
||||
}
|
||||
}
|
||||
// Anything else: polkit's message is the best we have.
|
||||
add("Requested by", who(if subject > 0 { subject } else { caller }))
|
||||
add("Unit", req.detail("unit"))
|
||||
|
||||
Reference in new issue
Block a user