Bug 353281

Summary: Cannot open files from history
Product: [Plasma] plasmashell Reporter: Hussam Al-Tayeb <ht990332>
Component: Application Launcher (Kickoff) widgetAssignee: David Edmundson <kde>
Status: RESOLVED FIXED    
Severity: normal CC: andry.dp92, antkoul, kde, kramski, landistwo, perrantrevan, piedro.kulman, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.4.1   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: example file.
/home/hussam/.local/share/RecentDocuments/snapshot3.png.desktop
RecentDocument's version of a png image file

Description Hussam Al-Tayeb 2015-09-28 15:34:15 UTC
Under plasma 5.4, clicking on 'Application Launcher -> History -> some file' doesn't open that file.
Terminal says:
Opening item with URL "/home/hussam/.local/share/RecentDocuments/snapshot3.png.desktop"
Failed to find service for QUrl("file:///home/hussam/.local/share/RecentDocuments/snapshot3.png.desktop")

Reproducible: Always
Comment 1 Eike Hein 2015-09-28 15:59:57 UTC
"History" tab -> Kickoff, not Kicker.
Comment 2 Hussam Al-Tayeb 2015-09-28 16:11:08 UTC
(In reply to Eike Hein from comment #1)
> "History" tab -> Kickoff, not Kicker.

Thank you.
Any chance you may know what component I am missing with 'Failed to find service for QUrl("file:///home/hussam/.local/share/RecentDocuments/snapshot3.png.desktop")'?
Someone on irc said it works for him/her.
Comment 3 Hussam Al-Tayeb 2015-09-28 16:54:58 UTC
Created attachment 94758 [details]
example file.
Comment 4 Hussam Al-Tayeb 2015-09-28 16:56:10 UTC
Created attachment 94759 [details]
/home/hussam/.local/share/RecentDocuments/snapshot3.png.desktop
Comment 5 Hussam Al-Tayeb 2015-09-28 16:59:54 UTC
Note that this happens with any recent entry. This one is just an example.
Comment 6 piedro 2015-09-30 09:09:11 UTC
Also it is not possible anymore to clear document history... which is a big privacy concern (as I reported in the forum and as bug before)... 

Right click on the history list gives me the options to "add to favorites" and "clear application history"... 
document history is not mentioned, so it's getting longer and longer. But as reported by the OP nothing will open on click...
Comment 7 perrantrevan 2015-10-01 16:23:10 UTC
I have the same problem. Recent Documents work in Kicker and the Dashboard launcher but not Kickoff.
Comment 8 Hussam Al-Tayeb 2015-10-01 16:44:11 UTC
kickoff apparently uses a different type of storage than kicker/dashboard.
Comment 9 piedro 2015-10-01 22:17:19 UTC
Well, it shouldn't... :-(
Comment 10 Landis 2015-10-05 02:13:15 UTC
RecentDocuments (history) are being created and stored as .desktop files and not symlinks to actual file.
This is a HUGE PROBLEM!! 
can not click and open 'RecentDocument' if it is no longer a 'text' document or in above example an image.png file... ALL dot DeskTop files are 'text' and are NOT the original doc or a link to.

For 6 + years I've used a 'widget' folder in my taskbar to display the content of ~/.kde4/share/apps/RecentDocuments/ ... Not that is Useless. Files still display, but are ALL .desktop and not links to original, previously opened file.

Not good!
Landis.
Comment 11 Landis 2015-10-05 02:14:40 UTC
Created attachment 94847 [details]
RecentDocument's version of a png image file

This is what is in RecentDocuments instead of a link to 'core.png'
Comment 12 kramski 2015-10-05 18:21:05 UTC
Same here (Plasma 5.4.1 on Arch Linux). This is what "journalct -f" prints out when trying to open a file from history:

Okt 05 20:16:22 haspl kdeinit5[4978]: The desktop entry file  "/home/.../.local/share/RecentDocuments/Harvey.jpg.desktop"  has Type= "Link"  instead of "Application" or "Service"
Okt 05 20:16:22 haspl kdeinit5[4978]: Access to ' "/home/.../.local/share/RecentDocuments/Harvey.jpg.desktop" ' denied, not owned by root, executable flag not set.
Comment 13 Hussam Al-Tayeb 2015-10-05 18:59:13 UTC
Is this possibly related?
https://bugs.kde.org/show_bug.cgi?id=235457#c14
Comment 14 kramski 2015-12-10 20:32:00 UTC
Plasma 5.5.0 solved this for me.
Comment 15 Kai Uwe Broulik 2015-12-15 22:44:04 UTC
Thanks for your feedback. Feel free to re-open if the issue persists in 5.5.