Summary: | Files and Folders in desktop won't open with the right click context menu. | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Chinmoy Ranjan Pradhan <chinmoyrp65> |
Component: | Desktop Containment | Assignee: | Sebastian Kügler <sebas> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, rikmills |
Priority: | NOR | ||
Version: | 5.6.4 | ||
Target Milestone: | 1.0 | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/plasma-workspace/6911541421dc068cee531a5fd5f322c0db5d7492 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
the error message
patch for kio(core/kfileitem.cpp) |
Description
Chinmoy Ranjan Pradhan
2016-06-20 08:14:35 UTC
Created attachment 99617 [details]
the error message
I recently found that the error message appears only if the Location (Desktop/Folder View Settings>Location) is set to Show Desktop Folder or in 'specify a folder' to 'desktop:/' Seems to occur also in kubuntu yakkety with plasma 5.6.5 staging, and neon with plasma 5.7 beta 1. Create a folder in desktop folder 2. add Folder view applet pointing to desktop:/ 3. Right click said folder 4. Choose "Open" -> the mentioned error message This error message appears because "desktop:/folder" is expanded to "/home/$USER/Desktop/folder" which in turn is passed to KRun as it is without any scheme. It is because the url doesn't have a scheme Krun displays the said errr message. Created attachment 99757 [details]
patch for kio(core/kfileitem.cpp)
this patch will cause the function targetUrl() to check for scheme and add one ("file") if no scheme is present.
Thanks for your patch! Can you head over to http://git.reviewboard.kde.org and submit it for review there? Patches in the bugtracker tend to get overlooked unfortunately. Nevermind, should have read all my mail first before commenting :) Git commit 6911541421dc068cee531a5fd5f322c0db5d7492 by Bhushan Shah, on behalf of Chinmoy Ranjan Pradhan. Committed on 30/06/2016 at 16:33. Pushed by bshah into branch 'Plasma/5.7'. Fix files/folders in desktop not opening with right click context menu UDS_LOCAL_PATH will return the path without file scheme. This schemeless path will be set in UDS_TARGET_URL and then will be used by kio's targetUrl and then final passed to Krun where it will fail the scheme test eventually leading to the said bug. Fix for this is to create a url using QUrl::fromLocalFile and then pass the url.toString()'s result to insert. CCMAIL: chinmoyrp65@gmail.com Differential revision: https://phabricator.kde.org/D2054 M +2 -1 kioslave/desktop/kio_desktop.cpp http://commits.kde.org/plasma-workspace/6911541421dc068cee531a5fd5f322c0db5d7492 |