Merge branch 'ukss-dev-t4' into 'ukss-dev'
修改路径的拼接方式 See merge request kylin-desktop/ukui-search!338
This commit is contained in:
commit
9741064e33
|
@ -841,7 +841,7 @@ int FileUtils::openFile(QString &path, bool openInDir)
|
||||||
isSuccess = false;
|
isSuccess = false;
|
||||||
} else {
|
} else {
|
||||||
appLaunchInterface->setTimeout(10000);
|
appLaunchInterface->setTimeout(10000);
|
||||||
QDBusReply<bool> reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", "file:"+(path));
|
QDBusReply<bool> reply = appLaunchInterface->call("LaunchDefaultAppWithUrl", QUrl::fromLocalFile(path));
|
||||||
if(reply.isValid()) {
|
if(reply.isValid()) {
|
||||||
isSuccess = reply;
|
isSuccess = reply;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue