Skip to content

Commit b5fbe1d

Browse files
committed
Add Deepin desktop environment detection
Enhance the desktop environment detection logic to include support for the Deepin desktop environment.
1 parent 44c85bd commit b5fbe1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/fcitx/misc_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static inline DesktopType getDesktopType() {
177177
if (desktop == "xfce") {
178178
return DesktopType::XFCE;
179179
}
180-
if (desktop == "deepin") {
180+
if (desktop == "deepin" || stringutils::startsWith(desktop, "dde")) {
181181
return DesktopType::DEEPIN;
182182
}
183183
if (desktop == "ukui") {

0 commit comments

Comments
 (0)