From 662a250705236b1c9748cbaccf12347b2a8f8274 Mon Sep 17 00:00:00 2001 From: Simon Plakolb Date: Wed, 19 Oct 2022 13:15:21 +0200 Subject: [PATCH] Fix battery indicator crash on linux A pre-processor flag was misspelled and is now corrected. --- src/modules/battery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/battery.cpp b/src/modules/battery.cpp index 88774940..fd1be357 100644 --- a/src/modules/battery.cpp +++ b/src/modules/battery.cpp @@ -7,7 +7,7 @@ #include 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.");