Change dbus service exec field for net.hadess.PowerProfiles.service

This commit is contained in:
2026-03-20 17:11:17 +02:00
parent 7282567ce9
commit 1c939b2d8d
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: power-profiles-daemon
description: Makes power profiles handling available over D-Bus
version: "0.30"
revision: 4
revision: 5
url: https://gitlab.freedesktop.org/upower/power-profiles-daemon
license: GPL3-only
maintainers:
+5 -2
View File
@@ -26,8 +26,11 @@ package() {
# Crate directory for persistent power states
install -d "$BPM_OUTPUT"/var/lib/power-profiles-daemon
# Set Exec field in dbus service to power-profiles-daemon
sed -i 's|^Exec=.*|Exec=/usr/libexec/power-profiles-daemon|' "$BPM_OUTPUT"/usr/share/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service
# Set Exec field in dbus services to power-profiles-daemon
sed -i 's|^Exec=.*|Exec=/usr/libexec/power-profiles-daemon|' \
"$BPM_OUTPUT"/usr/share/dbus-1/system-services/org.freedesktop.UPower.PowerProfiles.service \
"$BPM_OUTPUT"/usr/share/dbus-1/system-services/net.hadess.PowerProfiles.service
# Install esvm service
install -Dm644 "$BPM_WORKDIR"/power-profiles-daemon.esv "$BPM_OUTPUT"/etc/esvm/services/power-profiles-daemon.esv