I have certain scripts that create files (often from keyboard shortcuts) and I would like to have the files they create appear in the "Recently Used" section of file open dialogs. Is there a way to add to this list from the command-line?
For example, I have a script that runs scrot with certain options to take a screenshot. I would like the resulting screenshot to then appear in the "Recently Used" section of file open dialogs.
touch, the Recent tab in Nautilus is not aware of this new file created. If I click on Open File in my Atom editor, this new file also doesn't show up in the Recently Used tab. – edwinksl Oct 01 '16 at 06:47~/.local/share/recently-used.xbel. – edwinksl Oct 01 '16 at 08:28recently-used.xbelis a good pointer. I searched for that and found that the relevant API is theGtkRecentManager. I don't see a command-line wrapper for it, but will see if I can write one in Python. I'll post that here if I am successful (and no one else beats me to it). – Laurence Gonsalves Oct 02 '16 at 03:21