Revert "Waybar. Issue#1552. Calendar module, LC_TIME variable"
This reverts commit 7b7ee41e13
.
This commit is contained in:
parent
5a014305ec
commit
bd0f6128d3
|
@ -69,14 +69,7 @@ waybar::modules::Clock::Clock(const std::string& id, const Json::Value& config)
|
||||||
if (config_["locale"].isString()) {
|
if (config_["locale"].isString()) {
|
||||||
locale_ = std::locale(config_["locale"].asString());
|
locale_ = std::locale(config_["locale"].asString());
|
||||||
} else {
|
} else {
|
||||||
char* sysLocale{getenv("LC_TIME")};
|
locale_ = std::locale("");
|
||||||
try {
|
|
||||||
locale_ = sysLocale ? std::locale(sysLocale) : std::locale("");
|
|
||||||
}
|
|
||||||
catch(std::runtime_error const& localeErr) {
|
|
||||||
spdlog::warn(localeErr.what());
|
|
||||||
locale_ = std::locale();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
thread_ = [this] {
|
thread_ = [this] {
|
||||||
|
|
Loading…
Reference in New Issue