Merge pull request #11637 from omacom/fix-powerprofile-poll-coredumps

Poll the active power profile over D-Bus instead of powerprofilesctl
This commit is contained in:
David Heinemeier Hansson authored and GitHub committed 2026-09-13 18:06:00 +02:00
commit 8247eb36b7
2 files changed
+23 -6

No files matched your search

+2 -1
View File
@@ -174,7 +174,8 @@ assert(
assert(
batteryService.includes('property string activePowerProfile') &&
batteryService.includes('UPower.onBattery && activePowerProfile === "power-saver"') &&
batteryService.includes('["powerprofilesctl", "get"]') &&
batteryService.includes('"get-property", "net.hadess.PowerProfiles", "/net/hadess/PowerProfiles", "net.hadess.PowerProfiles", "ActiveProfile"') &&
!batteryService.includes('["powerprofilesctl"') &&
batteryService.includes('interval: 2000'),
'the battery service tracks the active power-saver profile'
)