Commit 49ecca4c authored by Kai Uwe Broulik's avatar Kai Uwe Broulik Committed by Kai Uwe Broulik
Browse files

Skip non-local files in extract file item action

Ark cannot extract non-local files. Using `QUrl::path()` to get its
local path is incorrect.

This causes Ark to unexpectedly stat a local folder, potentially
waking up drives and network mounts, which happens to match the path
on the remote location.

Signed-off-by: default avatarVictoria Fischer <>
parent 3c13d395
......@@ -38,7 +38,10 @@ QList<QAction*> ExtractFileItemAction::actions(const KFileItemListProperties& fi
// Filter URLs by supported mimetypes.
const auto urlList = fileItemInfos.urlList();
for (const QUrl &url : urlList) {
const QMimeType mimeType = determineMimeType(url.path());
if (!url.isLocalFile()) {
const QMimeType mimeType = determineMimeType(url.toLocalFile());
if (m_pluginManager->preferredPluginsFor(mimeType).isEmpty()) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment