[SOLVED] "Recently used" configuration?

Forum rules
Before you post please read this

[SOLVED] "Recently used" configuration?

Postby JoeInMN on Wed Feb 01, 2012 2:56 pm

I am running Mint12 with XFCE installed on top. Does anyone know where XFFCE4 keeps whatever config file it uses for its "Recently Used" files list? I am running glx-dock (cairo) as my panel and have xfce4-panel turned off entirely, so the "Places" panel plugin is not easily available, and I'm looking for another way to clear the list. Info I find via Google suggests a ~/recently-used.xbel file, and I could add a rm -r /home/username/.recently-used.xbel line to a little cleanup script that I use, but this file seems not to exist anywhere on my system. My preference would be to turn off the record-keeping entirely, but I don't think there is a setting anywhere for that.

Thanks!
Last edited by JoeInMN on Wed Feb 01, 2012 5:39 pm, edited 2 times in total.
User avatar
JoeInMN
Level 3
Level 3
 
Posts: 104
Joined: Wed Nov 17, 2010 5:52 pm

Linux Mint is funded by ads and donations.
 

Re: "Recently used" configuration?

Postby doktornotor on Wed Feb 01, 2012 2:58 pm

$HOME/.local/share/recently-used.xbel

Probably a better way is doing the following:

Code: Select all
echo gtk-recent-files-max-age=0 >> ~/.gtkrc-2.0
doktornotor
Level 4
Level 4
 
Posts: 212
Joined: Mon Jan 23, 2012 6:28 pm

Re: "Recently used" configuration?

Postby JoeInMN on Wed Feb 01, 2012 4:49 pm

doktornotor wrote:$HOME/.local/share/recently-used.xbel

Probably a better way is doing the following:

Code: Select all
echo gtk-recent-files-max-age=0 >> ~/.gtkrc-2.0


Thanks, but that doesn't seem to do anything; the .xbel file still gets populated with whatever files I open. If I remove it, it gets recreated the next time I open something. If I set its permission to "Read Only" or "None," the system so helpfully changes it right back for me. The behavior persists after logout/in. Deleting the file seems to be the only way to clear it.

Incidentally, thanks for locating the .xbel file for me, but shouldn't the "Search for files..." accessory have been able to find "recently-used.xbel" or "*.xbel" on my system?
User avatar
JoeInMN
Level 3
Level 3
 
Posts: 104
Joined: Wed Nov 17, 2010 5:52 pm

Re: "Recently used" configuration?

Postby doktornotor on Wed Feb 01, 2012 4:51 pm

Well, if it does not do anything even after logging out and back in, then

Code: Select all
rm -f $HOME/.local/share/recently-used.xbel
mkdir $HOME/.local/share/recently-used.xbel


otherwise obviously it will keep getting populated once again.

(I do not use "Search the files", no idea. locate is preinstalled and finds the file just fine via console.)
doktornotor
Level 4
Level 4
 
Posts: 212
Joined: Mon Jan 23, 2012 6:28 pm

Re: "Recently used" configuration?

Postby JoeInMN on Wed Feb 01, 2012 5:36 pm

I was using the Applications Menu/Accessories/Search for files... GUI way. It failed to turn up the file for some reason.

Anyway, making the bogus directory finally appears to have helped. Thanks much!
User avatar
JoeInMN
Level 3
Level 3
 
Posts: 104
Joined: Wed Nov 17, 2010 5:52 pm

Re: "Recently used" configuration?

Postby doktornotor on Wed Feb 01, 2012 5:38 pm

Probably does not search hidden dirs (like .local) by default, or at all.

P.S. Need to ask GTK devs why this stopped working. Used to work just fine.
doktornotor
Level 4
Level 4
 
Posts: 212
Joined: Mon Jan 23, 2012 6:28 pm

Re: [SOLVED] "Recently used" configuration?

Postby alveraan on Thu Mar 22, 2012 2:18 pm

Hi there. An even easier way is to make $HOME/.local/share/recently-used.xbel immutable like this (as root):
Code: Select all
chattr +i /home/YOURUSER/.local/share/recently-used.xbel


Cheers
alveraan
Level 1
Level 1
 
Posts: 1
Joined: Thu Mar 22, 2012 1:45 pm

Re: [SOLVED] "Recently used" configuration?

Postby JoeInMN on Thu Mar 29, 2012 2:06 am

alveraan wrote:Hi there. An even easier way is to make $HOME/.local/share/recently-used.xbel immutable like this (as root):
Code: Select all
chattr +i /home/YOURUSER/.local/share/recently-used.xbel


Cheers


That looks like a more elegant solution, though the dummy folder method is probably easier for me to remember. I'll try that the next time. Thanks!
User avatar
JoeInMN
Level 3
Level 3
 
Posts: 104
Joined: Wed Nov 17, 2010 5:52 pm

Linux Mint is funded by ads and donations.
 

Return to XFCE

Who is online

Users browsing this forum: No registered users and 3 guests