Bug 400731

Summary: Recent documents not accessible via right click on okular icon on task manager
Product: [Applications] okular Reporter: Simone Gaiarin <simgunz>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: minor CC: andysardina22, bugseforuns, nate
Priority: NOR Keywords: junior-jobs, usability
Version: 1.5.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Kate
Okular

Description Simone Gaiarin 2018-11-06 09:27:59 UTC
SUMMARY
Some application like kate, dolphin, chrome display actions and some also the recent documents when right-clicking on the corresponding icon on the task manager. Okular shows nothing. It would be nice to have okular shown the recent documents as well.

I am not sure this is a bug of okular or of the task manager.

STEPS TO REPRODUCE
1. Right click on the okular icon on icon-only task manager

OBSERVED RESULT
Recent documents not shown

EXPECTED RESULT
Recent documents shown


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Simone Gaiarin 2018-11-06 09:29:20 UTC
Operating System: Manjaro Linux 
KDE Plasma Version: 5.14.2
Qt Version: 5.11.2
KDE Frameworks Version: 5.51.0
Comment 2 Nate Graham 2018-11-06 16:27:01 UTC
Hmm, works for me with an IOTM and that exact same version of Okular on Manjaro. Same version of everything, in fact. Can you provide a screenshot or screen recording?

Are you sure it's a pinned task manager entry and not an accidentally-added standalone widget launcher?
Comment 3 Simone Gaiarin 2018-11-07 09:02:52 UTC
So after further testing I can better describe the problem:

In Okular:
- Open a document using File > Open... add the document to the recent list of the pinned entry on the taskbar
- Open a document using File > Recent... does not add it
- Open a document clicking on it in dolphin does not add it

In Kate
- Open a document using File > Open... add the document to the recent list of the pinned entry on the taskbar
- Open a document using File > Recent... does not add it
- Open a document clicking on it in dolphin add it sometimes

See screen recordings attached.

It is not clear to me how the recent file list in the pinned task bar entry is created given that it matches neither the application recent document list (e.g. okular) nor the KMenu history list.

Is it a duty of the single application to build this list or is it the task bar that reads the recent list of the different applications from file to build it. In this case which files does it read?
Comment 4 Nate Graham 2018-11-07 20:36:15 UTC
I don't see the screen recordings. :))
Comment 5 Simone Gaiarin 2018-11-07 21:33:16 UTC
Created attachment 116162 [details]
Kate
Comment 6 Simone Gaiarin 2018-11-07 21:33:58 UTC
Created attachment 116163 [details]
Okular
Comment 7 Simone Gaiarin 2018-11-07 21:37:52 UTC
As usually I forgot to add the attachments. Here they are now.

In the kate video I was not able to show that opening the document from dolphin sometimes does not add it to the recent documents. It happened in the video I recorded before but that is too large to attach it here. Maybe I did not close all the sessions of kate in other activities and the recent documents were not updated. I'll test that case further if necessary.
Comment 8 Patrick Silva 2019-02-23 23:39:59 UTC
On my system pinned icon of okular only shows recent files open through file open dialog.
Pinned icon of Kate never lists recent files.
Teted with icon-only task manager.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 9 Simone Gaiarin 2019-10-13 05:43:25 UTC
The documents opened by clicking on them in dolphin are now added to the "Recent documents" in the task manager.

Opening them from "Open Recent" inside Okular still does not make them appear in "Recent documents" in the task manager.

The behavior of Okular is not the same as that of Kate.
Comment 10 Andi Sardina 2019-10-13 08:52:16 UTC
I have the same behavior:

  > Opening them from "Open Recent" inside Okular still does
  > not make them appear in "Recent documents" in the task manager.


SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1
Comment 11 Nate Graham 2019-10-13 14:18:59 UTC
Yeah that's because the documents that show up in the "open recent" menu within the app come from a different data source. We are intending to unify these soon such that everything uses the same backend.

Sounds like the original bug is now fixed so I'm closing this. Unifying the backend data sources is tracked by Bug 410395.