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

Battery Levels are not displayed #19

Closed
gopar opened this issue Jan 4, 2022 · 3 comments
Closed

Battery Levels are not displayed #19

gopar opened this issue Jan 4, 2022 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@gopar
Copy link

gopar commented Jan 4, 2022

See image:
Screen Shot 2022-01-04 at 10 56 55 AM

Source of problem:

(when (file-readable-p "/sys/") (battery))

(file-readable-p "/sys/") returns nil but (battery) returns info.
I removed the when statement and it works. \o/

Not sure what the reasoning behind that condition is though.

@Phundrak
Copy link
Owner

Phundrak commented Jan 4, 2022 via email

@Phundrak
Copy link
Owner

Phundrak commented Jan 4, 2022

Does the branch https://github.com/Phundrak/eshell-info-banner.el/tree/fix/non-linux-battery fix this issue for you?

@Phundrak Phundrak added bug Something isn't working good first issue Good for newcomers labels Jan 4, 2022
@Phundrak Phundrak self-assigned this Jan 4, 2022
@gopar
Copy link
Author

gopar commented Jan 5, 2022

Yup, it works! \o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants