Bug 179978 - [GTK] Battery status not usable in flatpak
Summary: [GTK] Battery status not usable in flatpak
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2017-11-23 08:18 PST by Michael Catanzaro
Modified: 2017-11-23 08:18 PST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2017-11-23 08:18:26 PST
Battery status is not usable in flatpak. This means timers never get throttled properly. upower is not available in the GNOME SDK, and it doesn't make sense for it to be there, because it depends on udev, which can never work inside a sandbox, so WebKitGTK+ is built with -DUSE_UPOWER=OFF. Sad. libupower-glib could work inside the sandbox, if the right D-Bus paths are whitelisted in the application's flatpak-builder manifest, which would be OK. We would have to split that out from the rest of upower. Alternatively, we might need to create a battery status portal. Regardless, to be successful, this work needs to be done in coordination with Richard Hughes, Alex Larsson, and Matthias Clasen.