diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-10-11 12:49:42 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-10-20 19:51:25 +0200 |
commit | 9055c1118b6a526344a4a0dc3a05baa1d6c00272 (patch) | |
tree | f5a722b5d476fdf21c389e6e32749ebd61780fb8 /tools | |
parent | c7d39ace0011eafb9418f26eccc80d42db808ac7 (diff) | |
download | gnome-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.c | 2 |
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; } |