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.

This commit is contained in:
baijunjie 2021-11-03 11:53:48 +08:00
parent 1f1a4e061d
commit 338ffe6dad
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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: