In KUbuntu in "Application Menu", there is the "Recent Documents" container-item:
"Recent Documents" in KUbuntu
I suppose other DEs also have something similar.

What is the way to add there some document manually?
(E.g. to put a *.desktop file into some specific folder, or to run some command similar to xdg-open, or etc.)


You could enter find ~ \( -type d -or -type f \) -iname '*recent*' to get a list of files and directories that contain recent, Recent, RECENT, or some other case permutation thereof, in their names that exist in your home directory -- -iname means case insensitive name. Then, it would be a matter of inspecting the results one by one.

In my case (Debian Testing), it's in ~/.local/share/RecentDocuments.

  • Yeah, but I'm also interested about some standardization (and good ways to do it). E.g. is ~/.local/share/RecentDocuments standardized somewhere or just used de-facto in other environments? Are there some ways to manage it (e.g. console commands) except manually adding files? (I.e. I'm interested in both theory and practice, not only practice.) – Sasha Mar 4 '17 at 13:36
  • Other environments use different things. In Cinnamon, for example, the list of recently accessed documents are kept in an XML file .~/.local/share/recently-used.xbel. What are you trying to do, exactly? It seems to me you're looking for a way to abuse the recent documents mechanism. There's no such thing as theory in this regard, only conventions. Every desktop environment has its own conventions. – Larssend Mar 4 '17 at 14:49
  • Ok, now your answer seems to be full. I'll accept it (although it's better to specify that different DEs use different ways directly in the answer). – Sasha Mar 4 '17 at 14:56
  • I'm looking to the way to manually add items in the cases when they're not added automatically (e.g. VirtualBox in KDE doesn't add recently-used virtual machines into the recent documents list). But, of course, I search for right ways to do it — rather than a dirty hack that will stop working tomorrow. – Sasha Mar 4 '17 at 14:59
  • Hmm... – Sasha Mar 4 '17 at 15:12


There are 3 categories of "Recents" that can be displayed. I personally switch to the "classic" menu view where these are easily displayed. All there are added/deleted/modified in the "kdeglobals" file usually found at:


and should contain these:

    [Recent Applications]

    [Recent Documments]

    [Recent Installed]

Changing UseRecent true/false determines which show, but you'll notice the MaxEntries is set elsewhere, controllinng a "cat" or "trail" read of the containing log file, so unless you find where to change that default "file read" you'll max at only 10 items read/displayed.

I'm hunting for that as you see I want to exceed the "10" limit.



  • Thanks for the bits of info. But how does it explain how to add an entry? – Sasha Feb 27 at 15:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.