import QtQuick import Quickshell.Io Item { id: fortuneService property string fortuneText: "Loading..." Process { id: fortuneProcess command: ["fortune", "-s", "-a"] stdout: StdioCollector { onStreamFinished: { fortuneService.fortuneText = this.text.trim(); } } } Component.onCompleted: { fortuneProcess.running = true; } Timer { interval: 60000 // update fortune every minute repeat: true running: true onTriggered: { fortuneProcess.running = true; // run the process again to get a new fortune } } }