[gnome-session] check-accelerated: Fix warnings on startup



commit 9055c1118b6a526344a4a0dc3a05baa1d6c00272
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 11 12:49:42 2016 +0200

    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

 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 caade1c..810478c 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;
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]