mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-22 16:28:19 +02:00
Make GNOME detection a bit more tolerant
This commit is contained in:
2
glfw/linux_desktop_settings.c
vendored
2
glfw/linux_desktop_settings.c
vendored
@@ -104,6 +104,6 @@ void
|
|||||||
glfw_initialize_desktop_settings(void) {
|
glfw_initialize_desktop_settings(void) {
|
||||||
get_cursor_theme_from_env();
|
get_cursor_theme_from_env();
|
||||||
const char *desktop = getenv("XDG_CURRENT_DESKTOP");
|
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();
|
if (is_gnome) get_from_gnome();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user