mirror of https://gitee.com/openkylin/peony.git
[FIX] #I851VT 系统使用|通过局域网访问其它设备上的文件时无法打开文件
note: 当前对于远程文件url转path的方式处理有问题,导致无法正常打开
This commit is contained in:
parent
6149cc8526
commit
235bc20a06
|
@ -779,7 +779,7 @@ bool FileLaunchAction::launchDefaultAppWithUrl()
|
|||
QString uri = fileInfo->uri();
|
||||
QUrl url = uri;
|
||||
|
||||
if (G_IS_DESKTOP_APP_INFO(m_app_info)) {
|
||||
if (G_IS_DESKTOP_APP_INFO(m_app_info) && false) {
|
||||
auto desktop_app_info = G_DESKTOP_APP_INFO(m_app_info);
|
||||
QString desktopFile = g_desktop_app_info_get_filename(desktop_app_info);
|
||||
|
||||
|
@ -793,7 +793,7 @@ bool FileLaunchAction::launchDefaultAppWithUrl()
|
|||
return true;
|
||||
}
|
||||
qDebug() << "[FileLaunchAction::LaunchAppWithArguments] failed, uri:" << uri;
|
||||
} else {
|
||||
} else if (G_IS_DESKTOP_APP_INFO(m_app_info)) {
|
||||
QDBusReply<bool> result = session.call("LaunchDefaultAppWithUrl", url.toString());
|
||||
qDebug() << "[FileLaunchAction::LaunchDefaultAppWithUrl] uri:" << url.toString();
|
||||
|
||||
|
|
Loading…
Reference in New Issue