1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

Ensure cava only runs when media is playing

This commit is contained in:
bbedward
2025-08-17 17:51:20 -04:00
parent ce3e4cda20
commit 4414b863c7
2 changed files with 12 additions and 3 deletions

View File

@@ -17,12 +17,16 @@ Singleton {
id: cavaCheck
command: ["which", "cava"]
running: true
running: false
onExited: exitCode => {
root.cavaAvailable = exitCode === 0
}
}
Component.onCompleted: {
cavaCheck.running = true
}
Process {
id: cavaProcess