summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-10-11 12:49:42 +0200
committerBastien Nocera <hadess@hadess.net>2016-10-20 19:51:25 +0200
commit9055c1118b6a526344a4a0dc3a05baa1d6c00272 (patch)
treef5a722b5d476fdf21c389e6e32749ebd61780fb8 /tools
parentc7d39ace0011eafb9418f26eccc80d42db808ac7 (diff)
downloadgnome-session-9055c1118b6a526344a4a0dc3a05baa1d6c00272.tar.gz
check-accelerated: Fix warnings on startup
The Wayland session is now named "gnome" not "gnome-wayland", so don't try to run the X11-specific code when under Wayland. https://bugzilla.gnome.org/show_bug.cgi?id=756914
Diffstat (limited to 'tools')
-rw-r--r--tools/gnome-session-check-accelerated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gnome-session-check-accelerated.c b/tools/gnome-session-check-accelerated.c
index caade1c2..810478cb 100644
--- a/tools/gnome-session-check-accelerated.c
+++ b/tools/gnome-session-check-accelerated.c
@@ -107,7 +107,7 @@ main (int argc, char **argv)
* case, and it currently requires X. Until we have that working, just always
* assume wayland will work
*/
- if (g_strcmp0 (g_getenv ("XDG_SESSION_DESKTOP"), "gnome-wayland") == 0) {
+ if (g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "x11") != 0) {
return 0;
}