diff --git a/common/utils/flatpak.cpp b/common/utils/flatpak.cpp index 7a41fae6..ef8e2a6a 100644 --- a/common/utils/flatpak.cpp +++ b/common/utils/flatpak.cpp @@ -23,10 +23,11 @@ #include static const std::filesystem::path info_path = "/.flatpak-info"; +static const bool is_flatpak_v = std::filesystem::exists(info_path); bool wivrn::is_flatpak() { - return std::filesystem::exists(info_path); + return is_flatpak_v; } std::optional wivrn::flatpak_key(std::string section, std::string key)