From 3017520bcd3855532ad2fad65c50735b8f83e120 Mon Sep 17 00:00:00 2001 From: Wang Zichong Date: Mon, 27 Feb 2023 11:53:50 +0800 Subject: [PATCH] chore: load dxcb if XDG_CURRENT_DESKTOP set to DDE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当桌面环境名称为 DDE 时,载入 dxcb 插件。 Log: 当桌面环境名称为 DDE 时,载入 dxcb 插件 Influence: XDG_CURRENT_DESKTOP 设为 DDE 时,DDE 下的所有 DTK 应用程序 --- xcb/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcb/main.cpp b/xcb/main.cpp index cfc99b6b..2d2bd71b 100644 --- a/xcb/main.cpp +++ b/xcb/main.cpp @@ -29,7 +29,8 @@ QPlatformIntegration* DPlatformIntegrationPlugin::create(const QString& system, loadDXcb = false; } else if (system == "dxcb") { loadDXcb = true; - } else if (QString(qgetenv("XDG_CURRENT_DESKTOP")).toLower().startsWith("deepin")) { + } else if (QString(qgetenv("XDG_CURRENT_DESKTOP")).toLower().startsWith("deepin") || + (qgetenv("XDG_CURRENT_DESKTOP") == QByteArrayLiteral("DDE"))) { loadDXcb = true; }