[mutter/wip/carlosg/unthrottled-wayland] WIP: ci: Force a valid xcursor path




commit de0408eec1286bdc87ec11455ab617b332a69ef5
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jul 17 18:15:39 2021 +0200

    WIP: ci: Force a valid xcursor path
    
    The aarch64 tests somehow don't seem to find xcursor icons, make
    all tests look at the default location.

 .gitlab-ci.yml                            | 2 ++
 src/backends/meta-cursor-sprite-xcursor.c | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 771a8f010b..f13ed80bae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -197,7 +197,9 @@ build-without-native-backend-and-wayland@x86_64:
     G_SLICE: "always-malloc"
     MALLOC_CHECK_: "3"
     NO_AT_BRIDGE: "1"
+    XCURSOR_PATH: "/usr/share/icons/"
   script:
+    - ls -l /usr/share/icons/
     - mkdir -m 700 $XDG_RUNTIME_DIR
     - dbus-run-session -- bash -x ./.gitlab-ci/run-tests.sh
   artifacts:
diff --git a/src/backends/meta-cursor-sprite-xcursor.c b/src/backends/meta-cursor-sprite-xcursor.c
index 96942e3fe1..4e027e3519 100644
--- a/src/backends/meta-cursor-sprite-xcursor.c
+++ b/src/backends/meta-cursor-sprite-xcursor.c
@@ -168,7 +168,9 @@ load_cursor_on_client (MetaCursor cursor, int scale)
   if (xcursor_images)
     return xcursor_images;
 
-  g_warning_once ("No cursor theme available, please install a cursor theme");
+  g_warning_once ("No '%s' cursor theme available,"
+                  " please install a cursor theme",
+                  meta_prefs_get_cursor_theme ());
 
   fallback_size = 24 * scale;
   xcursor_images = XcursorImagesCreate (1);


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