Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/EnvUtils.cpp')
-rw-r--r--src/EnvUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/EnvUtils.cpp b/src/EnvUtils.cpp
index 7dce1095d..1c3a6dd63 100644
--- a/src/EnvUtils.cpp
+++ b/src/EnvUtils.cpp
@@ -56,4 +56,9 @@ bool setenv(QString name, QString value) {
#endif
}
+bool waylandIsUsed() {
+ // If wayland is used, this environment variable is expected to be set
+ return getenv(QStringLiteral("WAYLAND_DISPLAY")) != "";
+}
+
}; // namespace EnvUtils