diff options
author | saturneric <[email protected]> | 2025-05-01 00:23:24 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-05-01 00:23:24 +0000 |
commit | cd8124507237dda9066890748b7e0fbe59e7722d (patch) | |
tree | 0d2d5ca5b851fb7837fbb206320953d67e448db4 /src/core/utils/CommonUtils.cpp | |
parent | fix: install and packaging on linux (diff) | |
download | GpgFrontend-cd8124507237dda9066890748b7e0fbe59e7722d.tar.gz GpgFrontend-cd8124507237dda9066890748b7e0fbe59e7722d.zip |
fix: should only use fusion as default style under app image env
Diffstat (limited to 'src/core/utils/CommonUtils.cpp')
-rw-r--r-- | src/core/utils/CommonUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/utils/CommonUtils.cpp b/src/core/utils/CommonUtils.cpp index eec5deef..569d79e1 100644 --- a/src/core/utils/CommonUtils.cpp +++ b/src/core/utils/CommonUtils.cpp @@ -104,6 +104,10 @@ auto GPGFRONTEND_CORE_EXPORT IsFlatpakENV() -> bool { return QString::fromLocal8Bit(qgetenv("container")) == "flatpak"; } +auto GPGFRONTEND_CORE_EXPORT IsAppImageENV() -> bool { + return !QString::fromLocal8Bit(qgetenv("APPIMAGE")).isEmpty(); +} + auto GPGFRONTEND_CORE_EXPORT ParseHexEncodedVersionTuple(const QString& s) -> int { // s is a hex-encoded, unsigned int-packed version tuple, |