From 906be21b8dace74d8c52d4cb09cd62e34e942967 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Mar 2022 11:36:09 +0530 Subject: [PATCH] Make GNOME detection a bit more tolerant --- glfw/linux_desktop_settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/linux_desktop_settings.c b/glfw/linux_desktop_settings.c index 1686f2b97..081027ceb 100644 --- a/glfw/linux_desktop_settings.c +++ b/glfw/linux_desktop_settings.c @@ -104,6 +104,6 @@ void glfw_initialize_desktop_settings(void) { get_cursor_theme_from_env(); const char *desktop = getenv("XDG_CURRENT_DESKTOP"); - bool is_gnome = desktop && strncasecmp(desktop, "GNOME", sizeof("GNOME") - 1) == 0; + bool is_gnome = desktop && strstr(desktop, "GNOME"); if (is_gnome) get_from_gnome(); }