mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-07 04:58:21 +02:00
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")
This commit is contained in:
parent
32f5abfb82
commit
c749dfc444
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue