From cdbc8d48f497b8a724d3101f660c677093d0d538 Mon Sep 17 00:00:00 2001 From: Zhang Yu Date: Tue, 21 Jan 2025 13:09:28 +0800 Subject: [PATCH] fix: fail to start process Separate process parameters to stirng list. Log: --- src/grand-search/gui/exhibition/matchresult/groupwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/grand-search/gui/exhibition/matchresult/groupwidget.cpp b/src/grand-search/gui/exhibition/matchresult/groupwidget.cpp index d86e88a..d2456d9 100644 --- a/src/grand-search/gui/exhibition/matchresult/groupwidget.cpp +++ b/src/grand-search/gui/exhibition/matchresult/groupwidget.cpp @@ -466,10 +466,11 @@ void GroupWidget::onMoreBtnClicked() void GroupWidget::onOpenConfig(const QString& link) { + const QStringList args = {"-s", "--position", "aiconfig"}; if (link == "update index") { IntelligentRetrievalWidget::setAutoIndex(true); - QProcess::startDetached("dde-grand-search -s --position aiconfig"); + QProcess::startDetached("dde-grand-search", args); } else if (link == "config") { - QProcess::startDetached("dde-grand-search -s --position aiconfig"); + QProcess::startDetached("dde-grand-search", args); } }