From 8dfe4599860656b90fe8fb7f855f25233cc25912 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 16 Feb 2025 13:36:41 +0100 Subject: fix: do not check commit hash in flatpak container --- src/core/utils/CommonUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/utils/CommonUtils.cpp') diff --git a/src/core/utils/CommonUtils.cpp b/src/core/utils/CommonUtils.cpp index 526f5856..9687acd4 100644 --- a/src/core/utils/CommonUtils.cpp +++ b/src/core/utils/CommonUtils.cpp @@ -95,4 +95,7 @@ auto GFUnStrDup(const char* s) -> QString { return GFUnStrDup(const_cast(s)); } +auto GPGFRONTEND_CORE_EXPORT IsFlatpakENV() -> bool { + return QString::fromLocal8Bit(qgetenv("container")) == "flatpak"; +} } // namespace GpgFrontend \ No newline at end of file -- cgit v1.2.3