From 338ffe6dad458c80a352fd587544cfa2f31abdb8 Mon Sep 17 00:00:00 2001 From: baijunjie Date: Wed, 3 Nov 2021 11:53:48 +0800 Subject: [PATCH] The ukui-control center has modified the jump commands for project sp2 and project ukui-3.1,and the ukui-search needs to be modified accordingliy. --- frontend/mainwindow.cpp | 2 +- libsearch/settingsearch/settings-search-plugin.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/mainwindow.cpp b/frontend/mainwindow.cpp index aa8a4c3..8101412 100644 --- a/frontend/mainwindow.cpp +++ b/frontend/mainwindow.cpp @@ -282,7 +282,7 @@ void MainWindow::settingsBtnClickedSlot() #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) //打开控制面板的设置页 QProcess process; - process.startDetached("ukui-control-center --search"); + process.startDetached("ukui-control-center -m search"); #endif } diff --git a/libsearch/settingsearch/settings-search-plugin.cpp b/libsearch/settingsearch/settings-search-plugin.cpp index d97bdff..69c4fd2 100644 --- a/libsearch/settingsearch/settings-search-plugin.cpp +++ b/libsearch/settingsearch/settings-search-plugin.cpp @@ -261,9 +261,9 @@ void SettingsSearchPlugin::openAction(int actionkey, QString key, int type) case 0: //打开控制面板对应页面 if (key.left(key.indexOf("/")).toLower() == "wallpaper") - process.startDetached(QString("ukui-control-center --background")); + process.startDetached(QString("ukui-control-center -m background")); else - process.startDetached(QString("ukui-control-center --%1").arg(key.left(key.indexOf("/")).toLower())); + process.startDetached(QString("ukui-control-center -m %1").arg(key.left(key.indexOf("/")).toLower())); break; default: