Make GNOME detection a bit more tolerant

This commit is contained in:
Kovid Goyal 2022-03-22 11:36:09 +05:30
parent 5a36fbfe7b
commit 906be21b8d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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();
}