diff options
author | saturneric <[email protected]> | 2025-02-16 12:36:41 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-02-16 12:36:41 +0000 |
commit | 8dfe4599860656b90fe8fb7f855f25233cc25912 (patch) | |
tree | f40584a9ac9b00e4523d6997714b791d0d91604a /src/core/utils/CommonUtils.cpp | |
parent | chore: update appstream info (diff) | |
download | GpgFrontend-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.cpp | 3 |
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 |