Watch
1
0
Fork
You've already forked souveraine
0

task docs: lock primitives, settings authority, native audio privacy

This commit is contained in:
Fimeg 2026-07-19 22:13:40 -04:00
commit 7a052d77b0
2 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ Singleton {
} else {
root.syncing = true
sinkNode.name = sinkName
sinkNode.description = sinkName.includes("hw_0_0")
sinkNode.description = (sinkName.includes("hw_0_0") || sinkName.includes("Speaker__sink"))
? Translation.tr("Internal speakers") : sinkName
sinkNode.audio.volume = Math.max(0, Math.min(root.hardMaxValue, Number(sinkVolume) / 100))
sinkNode.audio.muted = sinkMuted === "yes"
@ -196,7 +196,7 @@ Singleton {
} else {
root.syncing = true
sourceNode.name = sourceName
sourceNode.description = sourceName.includes("hw_0_1")
sourceNode.description = (sourceName === "blueline_mic" || sourceName.includes("hw_0_1") || sourceName.includes("Mic__source"))
? Translation.tr("Internal microphone") : sourceName
sourceNode.audio.volume = Math.max(0, Math.min(root.hardMaxValue, Number(sourceVolume) / 100))
sourceNode.audio.muted = sourceMuted === "yes"

View file

@ -14,7 +14,7 @@
//
// The grant TTL is a deliberate policy setting (grantTtlMs), not an
// implementation accident. It defaults to 5 minutes and is configurable via
// Config.options.security.stepUp.grantTtlMs.
// Config.options.lock.stepUp.grantTtlMs.
//
// Grants are cleared on: lock, session end, PAM failure, and expiry. The
// expiry timer runs every 30 seconds; the precision of expiry is intentionally
@ -59,7 +59,7 @@ Singleton {
// open-ended and callers only need the two timestamps.
property var grants: ({})
// Default 5 minutes. Overridable via Config.options.security.stepUp.grantTtlMs
// Default 5 minutes. Overridable via Config.options.lock.stepUp.grantTtlMs
// so the policy knob lives in the user's config, not in source.
property int grantTtlMs: Config.options?.lock?.stepUp?.grantTtlMs ?? 300000