-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Description
The battery.2s.lua plugin returns empty output when run, while battery.2s.sh works correctly.
Steps to Reproduce
- Import battery plugin in Lua variant
- Run the plugin
- Output is empty/blank
Expected Behavior
Should output battery level with emoji and iconName attribute, e.g.:
๐ 100% | iconName=battery-level-100-charged-symbolic color=#8be9fd
---
State: charging
Level: 100%
---
Refresh | refresh=true
Actual Behavior
Empty or blank output.
Code Reference
- Plugin:
plugins/battery/battery.2s.lua - Uses
crossbarBridge.batterySync()API
Possible Causes
crossbarBridgeglobal may not be available in Lua runnerbatterySync()may return nil instead of table on some systems- Error handling may be silently failing
Environment
- OS: Linux
- Lua Runner: embedded lua5x
Related Commits
- bd13db4 (battery plugin update)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels