Merge branch 'ukss-dev-t4' into 'ukss-dev'

修改路径的拼接方式

See merge request kylin-desktop/ukui-search!338
This commit is contained in:
PengfeiZhang 2022-06-23 05:46:15 +00:00
commit 9741064e33
1 changed files with 1 additions and 1 deletions

View File

@ -841,7 +841,7 @@ int FileUtils::openFile(QString &path, bool openInDir)
isSuccess = false;
} else {
appLaunchInterface->setTimeout(10000);
QDBusReply<bool> reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", "file:"+(path));
QDBusReply<bool> reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", QUrl::fromLocalFile(path));
if(reply.isValid()) {
isSuccess = reply;
} else {