[gnome-session] check-accelerated: always return success if wayland



commit 3723d3125cc4c984e036f901a9e3f64c2626d23e
Author: Ray Strode <rstrode redhat com>
Date:   Mon Mar 24 14:38:29 2014 -0400

    check-accelerated: always return success if wayland
    
    This command does a lot of things that assumes X is going to be around.
    It won't be in the wayland case.  For now, just assume the best
    and short-circuit to success.

 tools/gnome-session-check-accelerated.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tools/gnome-session-check-accelerated.c b/tools/gnome-session-check-accelerated.c
index cae2422..f86e4be 100644
--- a/tools/gnome-session-check-accelerated.c
+++ b/tools/gnome-session-check-accelerated.c
@@ -110,6 +110,14 @@ main (int argc, char **argv)
         glong is_accelerated, is_software_rendering;
         GError *error = NULL;
 
+        /* gnome-session-check-accelerated gets run before X is started in the wayland
+         * 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) {
+                return 0;
+        }
+
         gtk_init (NULL, NULL);
 
         display = gdk_display_get_default ();


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