Closed Bug 1848589 Opened 1 year ago Closed 1 year ago

Migrate UPowerClient from dbus-glib to GDBus

Categories

(Core :: Widget: Gtk, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: stransky, Assigned: stransky)

References

Details

Attachments

(2 files)

Migrate UPowerClient from dbus-glib to GDBus

Flags: needinfo?(stransky)
Attached patch WIPSplinter Review
Assignee: nobody → stransky
Flags: needinfo?(stransky)
Flags: needinfo?(stransky)

There's no point to migrate PowerClient from dbus-glib to GDBus as API battery is not used at all. Let's disable to query battery state now.

Flags: needinfo?(stransky)
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/7f563d154541 [Linux] Don't query battery status on Linux as battery API is not used r=emilio
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

We still use the battery api in b2g. What's the long term plan here?

(In reply to [:fabrice] Fabrice Desré from comment #6)

We still use the battery api in b2g. What's the long term plan here?

But that's Android and not Linux implementation, right?

(In reply to Martin Stránský [:stransky] (ni? me) from comment #7)

(In reply to [:fabrice] Fabrice Desré from comment #6)

We still use the battery api in b2g. What's the long term plan here?

But that's Android and not Linux implementation, right?

No, we have support for devices like the Pinephone and Librem5 for https://capyloon.org that are "regular linux".

Would there be any chance of b2g folks contributing a migration of this code from dbus-glib to AsyncDBus?

We can try, but it's hard to promise anything. @emilio, are you talking about migrating to https://docs.gtk.org/gio/migrating-gdbus.html ?

Yes, but we have C++-promise wrappers for gdbus already in the tree here, so it should be using those ideally (should also be easier to get the calls right).

Flags: needinfo?(stransky)
Depends on: 1854887

I'm looking at it right now.

Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: