Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On my Ubuntu 12.04, all the gnome applications (such as Nautilus, Evince, gedit, firefox) can access "Recently Used" files and directories, when opening files in them.

  1. I wonder where the information about "Recently Used" files and directories is stored? I would like to access the "Recently Used" files and directories from terminal, by reading such information.
  2. KDE and wine applications can't access "Recently Used" files and directories. I wonder why?

Thanks!

share|improve this question

2 Answers 2

up vote 4 down vote accepted
  1. The Recently Used information is stored in a file called recently-used.xbel located under the .local/share directory per user, the full path being:

    ~/.local/share/recently-used.xbel
    

    It contains metadata on the recent files, like what is the application that opened it, or the application that should display it in its history.

    For example, my gedit shows 3 files:

    If I search for gedit in the file, I can surely see 3 "stanzas" because there are 3 files, here's one of them as a sample:

    <bookmark href="file:///path/to/dsasd" added="2014-07-26T19:22:24Z" modified="2014-07-26T21:52:22Z" visited="2014-07-26T19:22:25Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="text/plain"/>
        <bookmark:groups>
          <bookmark:group>gedit</bookmark:group>
        </bookmark:groups>
        <bookmark:applications>
          <bookmark:application name="gedit" exec="&apos;gedit %u&apos;" modified="2014-07-26T21:52:22Z" count="7"/>
        </bookmark:applications>
      </metadata>
    </info>
    

  2. The recently-used.xbel file is part of the GTK+ toolkit. I tried looking for some documentation on it, but this is the closest I can get:

    GNOME uses the GTK+ library, while KDE uses the QT library, I assume that's why it doesn't work with KDE. As for wine, I don't know, maybe it's just not designed to work with it.

share|improve this answer

if you mean to temp, its easy

sudo nautilus /tmp

but it you mean to recently files, maybe with a graphical program, like activity log manager, that you can get from Synaptic

sudo apt-get install activity-log-manager

share|improve this answer
3  
You shouldn't need to open Nautilus as root to read /tmp - you should probably also use gksu to do it anyway. /tmp is just where files are temporarily stored by programs, not all recently used items go there. –  Wilf Jul 30 at 11:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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