-
Notifications
You must be signed in to change notification settings - Fork 135
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
Avoid calling Refresh on org.freedesktop.UPower.Device #568
Comments
It's already separated out into its own hook that isn't enabled by default: refreshBatteriesOnPropChange
with this convenience hook, which is not set by default. This seems like a super random thing to be worried about. What drew your attention to this? |
@IvanMalison Thank you. I didn't realize I was using This got my attention because the error appears every time the battery information is changed, not just one time. My system logging had been full of this refresh error generated by Taffybar. I still think we should remove the code that will not work properly with newer UPower (as the UPower API has been changed for more than one year). Should I close this issue now? I'm no longer bothered by the code (that I think should still be removed or changed). |
You can leave it the issue for now. I'd welcome a PR, especially if you can verify that there are no longer issue on macbook hardware without this fix. |
I don't have a macbook myself, anymore, so I cant verify. |
Unfortunately I'm not using a MacBook, either. 😟 |
Describe the bug
UPower is deprecating or removing the Refresh method. We should stop using it.
As far as I understand, calling
Refresh
was introduced in #330. However, since UPower 0.99.14,Refresh
has been deprecated, and since UPower 0.99.18,Refresh
has been permitted only in the debug mode. It seems trivial to delete all the code that triggersRefresh
, but I would like to create an issue first before making a pull request.To Reproduce
Expected behavior
I expect no errors or warnings.
Version information
The text was updated successfully, but these errors were encountered: