修改路径的拼接方式

This commit is contained in:
hewenfei 2022-06-23 13:44:38 +08:00 committed by iaom
parent dea3d031ab
commit 8a8ce7bb85
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 {