From c57ffb175010dd11b2779fcccf1747f1233eac8d Mon Sep 17 00:00:00 2001 From: hewenfei Date: Thu, 23 Jun 2022 13:44:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84=E7=9A=84?= =?UTF-8?q?=E6=8B=BC=E6=8E=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libsearch/file-utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsearch/file-utils.cpp b/libsearch/file-utils.cpp index fee0430..dcad187 100644 --- a/libsearch/file-utils.cpp +++ b/libsearch/file-utils.cpp @@ -841,7 +841,7 @@ int FileUtils::openFile(QString &path, bool openInDir) isSuccess = false; } else { appLaunchInterface->setTimeout(10000); - QDBusReply reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", "file:"+(path)); + QDBusReply reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", QUrl::fromLocalFile(path)); if(reply.isValid()) { isSuccess = reply; } else {