From c749dfc4440c47bbfa399f94c01ed52565a3c392 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Tue, 13 Feb 2024 16:11:44 -0600 Subject: [PATCH] Fix launching `powerprofilesctl` The active profile is on org.freedesktop.DBus.Properties Fixes: 3b29b0e ("cleanup: Use UPower namespace as default DBus name preserving old one") --- src/powerprofilesctl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/powerprofilesctl.in b/src/powerprofilesctl.in index 3317b58..c2ae485 100755 --- a/src/powerprofilesctl.in +++ b/src/powerprofilesctl.in @@ -10,6 +10,7 @@ VERSION = '@VERSION@' PP_NAME = 'org.freedesktop.UPower.PowerProfiles' PP_PATH = '/org/freedesktop/UPower/PowerProfiles' PP_IFACE = 'org.freedesktop.UPower.PowerProfiles' +PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' def usage_main(): print('Usage:') @@ -98,7 +99,7 @@ def get_proxy(): try: bus = Gio.bus_get_sync(Gio.BusType.SYSTEM, None) proxy = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE, None, - PP_NAME, PP_PATH, PP_IFACE, None) + PP_NAME, PP_PATH, PROPERTIES_IFACE, None) except: raise return proxy