diff --git a/src/apps/dde-desktop/main.cpp b/src/apps/dde-desktop/main.cpp index 87aafa9e2f..1ff23bf733 100644 --- a/src/apps/dde-desktop/main.cpp +++ b/src/apps/dde-desktop/main.cpp @@ -91,7 +91,7 @@ static bool pluginsLoad() QStringList blackNames { DConfigManager::instance()->value(kPluginsDConfName, "desktop.blackList").toStringList() }; #ifdef COMPILE_ON_V23 - if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") { + if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") { qCInfo(logAppDesktop) << "disable background by TreeLand"; if (!blackNames.contains("ddplugin-background")) { blackNames.append("ddplugin-background"); diff --git a/src/plugins/desktop/core/ddplugin-core/screen/screenproxyqt.cpp b/src/plugins/desktop/core/ddplugin-core/screen/screenproxyqt.cpp index 61303a6f80..df607cf7e3 100644 --- a/src/plugins/desktop/core/ddplugin-core/screen/screenproxyqt.cpp +++ b/src/plugins/desktop/core/ddplugin-core/screen/screenproxyqt.cpp @@ -130,7 +130,7 @@ qreal ScreenProxyQt::devicePixelRatio() const DisplayMode ScreenProxyQt::displayMode() const { #ifdef COMPILE_ON_V23 - if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") { + if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") { return DisplayMode::kShowonly; } #endif diff --git a/src/plugins/desktop/ddplugin-wallpapersetting/wlsetplugin.cpp b/src/plugins/desktop/ddplugin-wallpapersetting/wlsetplugin.cpp index 2ba4163584..034cdf88f4 100644 --- a/src/plugins/desktop/ddplugin-wallpapersetting/wlsetplugin.cpp +++ b/src/plugins/desktop/ddplugin-wallpapersetting/wlsetplugin.cpp @@ -97,7 +97,7 @@ void EventHandle::startTreeland() bool EventHandle::wallpaperSetting(const QString &name) { - if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") { + if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") { startTreeland(); } else { show(name, (int)WallpaperSettings::Mode::WallpaperMode); @@ -108,7 +108,7 @@ bool EventHandle::wallpaperSetting(const QString &name) bool EventHandle::screenSaverSetting(const QString &name) { - if (qEnvironmentVariable("DDE_CURRENT_COMPOSITER") == "TreeLand") { + if (qEnvironmentVariable("DDE_CURRENT_COMPOSITOR") == "TreeLand") { startTreeland(); } else { show(name, (int)WallpaperSettings::Mode::ScreenSaverMode);