From b5fbe1d1eb7163652c6b82289904c914033a37cc Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Mon, 21 Apr 2025 13:12:12 +0800 Subject: [PATCH] Add Deepin desktop environment detection Enhance the desktop environment detection logic to include support for the Deepin desktop environment. --- src/lib/fcitx/misc_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/fcitx/misc_p.h b/src/lib/fcitx/misc_p.h index dafc268ae..282c23812 100644 --- a/src/lib/fcitx/misc_p.h +++ b/src/lib/fcitx/misc_p.h @@ -177,7 +177,7 @@ static inline DesktopType getDesktopType() { if (desktop == "xfce") { return DesktopType::XFCE; } - if (desktop == "deepin") { + if (desktop == "deepin" || stringutils::startsWith(desktop, "dde")) { return DesktopType::DEEPIN; } if (desktop == "ukui") {