Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power_profiles_daemon: Move to org.freedesktop.UPower.PowerProfiles #200

Merged
merged 3 commits into from
Feb 23, 2024

Conversation

martinpitt
Copy link
Owner

Version 0.20 moved to D-Bus name org.freedesktop.UPower.PowerProfiles, and corresponding changes to the object path/interface: https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/releases/0.20

The real daemon also still listens to the old name, but we can't do that in dbusmock: BUS_NAME and friends cannot be parameterized, as their loading and instantiation happens before calling the load() function.

powerprofilesctl now only looks at the new name, so we need to adjust the template. The new version is in Fedora 39 to rawhide and also in Debian testing, so for ongoing development it's more useful to present the current API.


See recent test failures

Version 0.20 moved to D-Bus name `org.freedesktop.UPower.PowerProfiles`,
and corresponding changes to the object path/interface:
https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/releases/0.20

The real daemon also still listens to the old name, but we can't do that
in dbusmock: BUS_NAME and friends cannot be parameterized, as their
loading and instantiation happens before calling the `load()` function.

`powerprofilesctl` now only looks at the new name, so we need to adjust
the template. The new version is in Fedora 39 to rawhide and also in
Debian testing, so for ongoing development it's more useful to present
the current API.
@martinpitt
Copy link
Owner Author

@3v1n0 @hadess FYI -- I'll do a release and Fedora/Debian upload afterwards.

@martinpitt martinpitt merged commit 254bd55 into main Feb 23, 2024
28 checks passed
@martinpitt martinpitt deleted the fixes branch February 23, 2024 07:11
@3v1n0
Copy link
Contributor

3v1n0 commented Feb 23, 2024

Well... Apps and libraries are all using the old name though, so not sure if that's too early or she should duplicate it instead?

@martinpitt
Copy link
Owner Author

@3v1n0 not sure, you tell me -- we could of course copy the whole template as power_profiles_daemon_upower.py or so?

@3v1n0
Copy link
Contributor

3v1n0 commented Feb 23, 2024

It seems safer to me, yes.

Maybe using prefixed name though: upower_power_profiles_daemon.py?

So we have both and can migrate apps using it without breaking them.

@martinpitt
Copy link
Owner Author

In retrospect this was a silly move, sorry. I'll retract today's releases and work on a better solution.

@martinpitt
Copy link
Owner Author

@3v1n0 See PR #201 -- I'd appreciate if you could have a look. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants