Changeset View
Changeset View
Standalone View
Standalone View
src/core/desktopexecparser.cpp
Show First 20 Lines • Show All 341 Lines • ▼ Show 20 Line(s) | 340 | for (int i = 0; i < d->urls.count(); ++i) { | |||
---|---|---|---|---|---|
342 | if (!url.isLocalFile() && !hasSchemeHandler(url)) { | 342 | if (!url.isLocalFile() && !hasSchemeHandler(url)) { | ||
343 | // Lets try a KIOFuse mount instead. | 343 | // Lets try a KIOFuse mount instead. | ||
344 | requests.push_back({ kiofuse_iface.mountUrl(url.toString()), i }); | 344 | requests.push_back({ kiofuse_iface.mountUrl(url.toString()), i }); | ||
345 | } | 345 | } | ||
346 | } | 346 | } | ||
347 | } else if (!appSupportedProtocols.contains(QLatin1String("KIO"))) { | 347 | } else if (!appSupportedProtocols.contains(QLatin1String("KIO"))) { | ||
348 | for (int i = 0; i < d->urls.count(); ++i) { | 348 | for (int i = 0; i < d->urls.count(); ++i) { | ||
349 | const QUrl url = d->urls.at(i); | 349 | const QUrl url = d->urls.at(i); | ||
350 | if (hasSchemeHandler(url)) { | ||||
351 | break; | ||||
352 | } | ||||
350 | const bool supported = isProtocolInSupportedList(url, appSupportedProtocols); | 353 | const bool supported = isProtocolInSupportedList(url, appSupportedProtocols); | ||
351 | // NOTE: Some non-KIO apps may support the URLs (e.g. VLC supports smb://) | 354 | // NOTE: Some non-KIO apps may support the URLs (e.g. VLC supports smb://) | ||
352 | // but will not have the password if they are not in the URL itself. | 355 | // but will not have the password if they are not in the URL itself. | ||
353 | // Hence convert URL to KIOFuse equivalent in case there is a password. | 356 | // Hence convert URL to KIOFuse equivalent in case there is a password. | ||
354 | // @see https://pointieststick.com/2018/01/17/videos-on-samba-shares/ | 357 | // @see https://pointieststick.com/2018/01/17/videos-on-samba-shares/ | ||
355 | // @see https://bugs.kde.org/show_bug.cgi?id=330192 | 358 | // @see https://bugs.kde.org/show_bug.cgi?id=330192 | ||
356 | if (!supported || (!url.userName().isEmpty() && url.password().isEmpty())) { | 359 | if (!supported || (!url.userName().isEmpty() && url.password().isEmpty())) { | ||
357 | requests.push_back({ kiofuse_iface.mountUrl(url.toString()), i }); | 360 | requests.push_back({ kiofuse_iface.mountUrl(url.toString()), i }); | ||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |