From b5d3294a4c06a97a3f6e7f6b51a397f2d6a734d5 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 27 Apr 2020 17:27:06 +0200 Subject: Add support for PrefersNonDefaultGPU .desktop key And deprecate KDE's X-KDE-RunOnDiscreteGpu. See: https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/13 --- src/validate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/validate.c b/src/validate.c index b6ed869..42f1d28 100644 --- a/src/validate.c +++ b/src/validate.c @@ -323,6 +323,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = { { DESKTOP_BOOLEAN_TYPE, "DBusActivatable", FALSE, FALSE, FALSE, handle_dbus_activatable_key }, + /* Since 1.4 */ + { DESKTOP_BOOLEAN_TYPE, "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL }, + /* Keys reserved for KDE */ /* since 0.9.4 */ @@ -355,6 +358,8 @@ static DesktopKeyDefinition registered_desktop_keys[] = { /* since 0.9.6 */ { DESKTOP_STRING_LIST_TYPE, "SortOrder", FALSE, TRUE, FALSE, NULL }, { DESKTOP_REGEXP_LIST_TYPE, "FilePattern", FALSE, TRUE, FALSE, NULL }, + /* since 1.4 */ + { DESKTOP_BOOLEAN_TYPE, "X-KDE-RunOnDiscreteGpu", FALSE, TRUE, FALSE, NULL }, /* Keys from other specifications */ -- cgit v1.2.3