diff --git a/src/path/Path.cpp b/src/path/Path.cpp index d0aa365..157766a 100644 --- a/src/path/Path.cpp +++ b/src/path/Path.cpp @@ -12,7 +12,7 @@ namespace Hyprutils::Path { std::optional getHome() { static const auto homeDir = getenv("HOME"); - if (!homeDir || std::filesystem::path(homeDir).is_absolute()) + if (!homeDir || !std::filesystem::path(homeDir).is_absolute()) return std::nullopt; static const std::optional home = std::string(homeDir).append("/.config");