From 3c001f3b23183ec387ee58b47b70a3a069ee3932 Mon Sep 17 00:00:00 2001 From: Ivy233 Date: Tue, 20 Oct 2026 16:57:33 +0800 Subject: [PATCH] refactor: stop invoking legacy dconfig migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Remove the Shell::dconfigsMigrate() call from startup because the 23 -> 25 upgrade path is no longer supported 2. Keep the migration framework in shell.cpp for future reuse 3. Avoid creating DConfig objects for legacy migrations, preventing "Can't acquire config manager" and "DConfig is invalid" warnings Log: Remove legacy dconfig migration call Influence: 1. dde-shell no longer performs legacy dconfig migrations at startup 2. The migration framework remains available for future migrations 3. The legacy migration warnings no longer appear in the startup log refactor: 停止调用旧 dconfig 迁移 1. 23 -> 25 升级路径已不再支持,移除启动时的 Shell::dconfigsMigrate() 调用 2. 保留 shell.cpp 中的迁移框架,供后续迁移复用 3. 避免为旧迁移创建 DConfig 对象,消除 "Can't acquire config manager" 和 "DConfig is invalid" 告警 Log: 移除旧 dconfig 迁移调用 Influence: 1. dde-shell 启动时不再执行旧 dconfig 迁移 2. 迁移框架仍保留,后续可继续复用 3. 启动日志中不再出现旧迁移相关告警 PMS: TASK-394335 --- shell/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/shell/main.cpp b/shell/main.cpp index aa7335652..1982002cb 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -240,7 +240,6 @@ int main(int argc, char *argv[]) }); } - shell.dconfigsMigrate(); AppletConfigManager appletConfigManager; appletConfigManager.ensureAppletConfigs(); // TODO disable qml's cache avoid to parsing error for ExecutionEngine.