fix: Timer not available in functions module, use Process instead
This commit is contained in:
parent
e17f02b030
commit
13cded0087
1 changed files with 6 additions and 7 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue