forked from openkylin/ukui-search
修改路径的拼接方式
This commit is contained in:
parent
7523110016
commit
c57ffb1750
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue