Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Recent files

Post Reply
Mishimainizu
Forum Novice
Forum  Novice
Posts: 57
Joined: Sat Apr 20, 2019 2:11 am

Recent files

#1

Post by Mishimainizu » Tue May 21, 2019 8:49 pm

Is there in MX Linux a way to show "Recently used files" somewhere as in Windows? (I mean files,not apps).

Thank you

User avatar
richb
Administrator
Posts: 18867
Joined: Wed Jul 12, 2006 2:17 pm

Re: Recent files

#2

Post by richb » Tue May 21, 2019 8:56 pm

In XFCE there is a panel item called Places that shows recent files as well as mounted partitions. Right click on the Panel and choose Panel then Add items. Scroll down to Places and add to panel. Left clicking on its icon will open a popup and at the bottom is an item Recent Documents. Clicking on that will show recently used documents. images, etc.
Forum Rules
Guide - How to Ask for Help

Rich
SSD Production: MX 18.1
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB, 350 GB HD

Mishimainizu
Forum Novice
Forum  Novice
Posts: 57
Joined: Sat Apr 20, 2019 2:11 am

Re: Recent files

#3

Post by Mishimainizu » Wed May 22, 2019 12:30 am

Thank you very much richb! I had this item installed some time ago, but didn't notice the Recent Documents item.

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24716
Joined: Wed Jul 19, 2006 6:13 am

Re: Recent files

#4

Post by Jerry3904 » Tue May 28, 2019 6:52 pm

Interesting. I looked for this, and found that there is a file where the info is supposedly stored: ~/.local/share/recently-used.xbel. It's not very readable though, and I'm not sure ATM how to get it parsed.
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

User avatar
Jerry3904
Forum Veteran
Forum Veteran
Posts: 24716
Joined: Wed Jul 19, 2006 6:13 am

Re: Recent files

#5

Post by Jerry3904 » Tue May 28, 2019 7:13 pm

There is a CLI command that lists all modified files in a certain time period

Code: Select all

find -type f -mtime -7
That shows files from the last 7 days, and you can dump that in a text file with an addition

Code: Select all

find -type f -mtime -7 > last7.txt
Finally if you are looking for something in particular, say a libreoffice file, you can do something like this:

Code: Select all

find -type f -mtime -7 | grep libreoffice > last7_LO.txt
But I don't know finally how useful any of that would be, just fooling around...
Production: 4.15.0-1-amd64, MX-17.1, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 8 GB, SSD 120 GB, Data 1TB
Testing: AAO 722: 4.15.0-1-386. MX-17.1, AMD C-60 APU, 4 GB
Personal: XPS 13, 4.18.0-19.3-liquorix, 4 GB

skidoo
Forum Guide
Forum Guide
Posts: 1427
Joined: Tue Sep 22, 2015 6:56 pm

Re: Recent files

#6

Post by skidoo » Tue May 28, 2019 7:59 pm

Some applications do not write entries to recently-used.xbel
Even if thunar "Open With" does create an entry (I haven't checked)... the handling app may, or may not, create additional entries for each additional file that is subsequently loaded via Drag-Drop or via File-}Open

A while back, I investigated the prospect of writing a script to "forensically" determine recently used (accessed) files...
and quickly realized this prospect is foiled by our (MX, and antiX, and just about every desktop linux distro) use of noatime or relatime or lazyatime mount options specified in /etc/fstab

FWIW, during an antiX/MX liveboot session, with on-demand (aka "semi-automatic" mode) persistence enabled, a slightly-modified version of the persist-save script can generate a list of recently changed (CREATED//DELETED//EDITED) files.
howto:
Copy the script to a new name (e.g. "persist-save-check")
Add "--dry-run" (and, optionally -verbose) to the rsync options
Redirect the output to /tmp/changed_list.txt
Optionally, insert into the script a tailend "myfavetexteditor /tmp/changed_list.txt" line

Post Reply

Return to “General”