agent sessions: use shellPath convention for collector path
This commit is contained in:
parent
47ce2d1970
commit
b21184217e
1 changed files with 10 additions and 1 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue