Watch
1
0
Fork
You've already forked souveraine
0

agent sessions: use shellPath convention for collector path

This commit is contained in:
Fimeg 2026-08-11 14:21:37 -04:00
commit b21184217e

View file

@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import qs
import qs.modules.common
import qs.modules.common.functions
import QtQuick
import Quickshell
import Quickshell.Io
@ -125,7 +126,15 @@ Singleton {
Process {
id: collector
command: [Quickshell.shellDir + "/scripts/agent/agent-sessions.sh"]
// Path convention matches WallpaperDownload/ConflictKiller: shellPath
// returns a file:// URL, which Process will not exec. Window minutes is
// passed through so the config owns "how far back counts as a session"
// rather than the script hardcoding it.
command: [
FileUtils.trimFileProtocol(Quickshell.shellPath("scripts/agent/agent-sessions.sh")),
"--window-min",
String(Config.options?.bar?.agentSessions?.windowMinutes ?? 1440)
]
stdout: StdioCollector {
onStreamFinished: {