mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #694] [UPower] UPower module crashes bar on desktop #8662
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#8662
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GameDungeon on GitHub (Aug 9, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/694
Describe the bug
If I use the UPower module on a Desktop PC with no battery it crashes the entire bar. I use nix and share my config between my desktop and my laptop, but I currently can't as my laptop's config will crash the bar on the desktop.
To Reproduce
Steps to reproduce the behavior:
Add UPower module to a desktop PC's bar
Expected behavior
Not having the bar crash (Adding an option to hide the UPower if there is no battery detected would be great as well)
System information:
Additional context
Screenshots
@GameDungeon commented on GitHub (Aug 9, 2024):
After further testing it turns out that the UPower module also crashes on my laptop
@JakeStanger commented on GitHub (Aug 9, 2024):
Can you provide logs please?
@GameDungeon commented on GitHub (Aug 9, 2024):
Here is the log file, if you want I can give the rust backtrace
@JakeStanger commented on GitHub (Aug 9, 2024):
Okay so I'm not sure why yours is crashing. I'd double check you actually have Upower installed and running on your machine? I just tested on my desktop and it runs there at least, and I know it works on my laptop.
I'm just merging a fix that should avoid it from hard-crashing on error at least.
@GameDungeon commented on GitHub (Aug 9, 2024):
Oh, The wiki page for that does not say anything about needing another piece of software so I never thought to check (I thought that was just the name of the widget) Let me try that with the software lol
@JakeStanger commented on GitHub (Aug 9, 2024):
I guess that wasn't tremendously clear if you don't know. I've just added a note to the wiki.
@GameDungeon commented on GitHub (Aug 9, 2024):
Well thank you, between the wiki note and that PR I think I can close this now.
@JakeStanger commented on GitHub (Aug 9, 2024):
Awesome np, cheers for confirming