Watch
1
0
Fork
You've already forked souveraine
0

fix: Timer not available in functions module, use Process instead

This commit is contained in:
Fimeg 2026-07-14 22:15:10 -04:00
commit 13cded0087

View file

@ -39,7 +39,6 @@
// grows a network-reachable caller, that assumption is what breaks first.
pragma Singleton
import QtQuick
import qs
import qs.services
import qs.modules.common
@ -426,13 +425,13 @@ Singleton {
// console.log below is the runtime check; the comment is the human
// audit trail.
// NOTE: Component.onCompleted doesn't work on Singletons in QML,
// so the audit log fires via a zero-delay Timer instead.
Timer {
id: bootAuditTimer
interval: 0
repeat: false
// and Timer isn't available in this module's import scope. Use a
// Process with onExited instead.
Process {
id: bootAuditProc
running: true
onTriggered: {
command: ["true"]
onExited: {
console.log("[session] boot IPC audit — shell exposes: "
+ "lock, lock2, dock, sidebar, session, overview, keyboard, appInventory");
}