just in case

This commit is contained in:
Mars 2025-04-27 19:18:07 -04:00
parent b534cbddb0
commit 24b6a72614
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
9 changed files with 268 additions and 233 deletions

View file

@ -1,9 +1,15 @@
#include <future>
#include "system_data.h"
#include "src/config/config.h"
#include "src/os/os.h"
#include <chrono> // for year_month_day, floor, days...
#include <exception> // for exception
#include <future> // for future, async, launch
#include <locale> // for locale
#include <stdexcept> // for runtime_error
#include <tuple> // for tuple, get, make_tuple
#include <utility> // for move
#include "src/config/config.h" // for Config, Weather, NowPlaying
#include "src/os/os.h" // for GetDesktopEnvironment, GetHost...
namespace {
fn GetDate() -> String {
@ -18,7 +24,7 @@ namespace {
return std::format(std::locale::classic(), "{:%B %d}", ymd);
}
}
}
} // namespace
SystemData SystemData::fetchSystemData(const Config& config) {
SystemData data {