mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-15 15:32:37 +02:00
Fix battery indicator crash on linux
A pre-processor flag was misspelled and is now corrected.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <iostream>
|
||||
waybar::modules::Battery::Battery(const std::string& id, const Json::Value& config)
|
||||
: AButton(config, "battery", id, "{capacity}%", 60) {
|
||||
#if defined(__Linux__)
|
||||
#if defined(__linux__)
|
||||
battery_watch_fd_ = inotify_init1(IN_CLOEXEC);
|
||||
if (battery_watch_fd_ == -1) {
|
||||
throw std::runtime_error("Unable to listen batteries.");
|
||||
|
Reference in New Issue
Block a user