aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/CommonUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-02-16 12:36:41 +0000
committersaturneric <[email protected]>2025-02-16 12:36:41 +0000
commit8dfe4599860656b90fe8fb7f855f25233cc25912 (patch)
treef40584a9ac9b00e4523d6997714b791d0d91604a /src/core/utils/CommonUtils.cpp
parentchore: update appstream info (diff)
downloadGpgFrontend-8dfe4599860656b90fe8fb7f855f25233cc25912.tar.gz
GpgFrontend-8dfe4599860656b90fe8fb7f855f25233cc25912.zip
fix: do not check commit hash in flatpak container
Diffstat (limited to 'src/core/utils/CommonUtils.cpp')
-rw-r--r--src/core/utils/CommonUtils.cpp3
1 files changed, 3 insertions, 0 deletions
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<char*>(s));
}
+auto GPGFRONTEND_CORE_EXPORT IsFlatpakENV() -> bool {
+ return QString::fromLocal8Bit(qgetenv("container")) == "flatpak";
+}
} // namespace GpgFrontend \ No newline at end of file