diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-12-21 22:27:12 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-12-21 22:27:12 +0100 |
| commit | bd952dcef2ead3b0b7e2d730930a3fc528813ee0 (patch) | |
| tree | 231401dbdb3567649e24f389aad9aa5bf5392583 /src/helpers/MiscFunctions.cpp | |
| parent | bc51a91043a6405834854d8a13e8e8ac45ea5737 (diff) | |
systemd: add HYPRLAND_NO_SD_NOTIFY
fixes #4217
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index 6eab7e2b..5eb99bfd 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -791,4 +791,11 @@ uint32_t glFormatToType(uint32_t gl) { GL_UNSIGNED_INT_2_10_10_10_REV : #endif GL_UNSIGNED_BYTE; +} + +bool envEnabled(const std::string& env) { + const auto ENV = getenv(env.c_str()); + if (!ENV) + return false; + return std::string(ENV) == "1"; }
\ No newline at end of file |
