How to permanetly disable recent files! Mint 14

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

How to permanetly disable recent files! Mint 14

Postby Alister on Wed Dec 12, 2012 11:10 pm

I'm using mint 14 and i see in the cinnamon settings you can disable the recent files list from the menu but it's still active does anyone no where this folder on the computer is located and how to disable it?

I came across posts about mint 13 and ways to do it doesn't seem like its completely the same for 14 so if anyone can help much appreciated.
Alister
Level 1
Level 1
 
Posts: 8
Joined: Fri Apr 20, 2012 6:34 am

Linux Mint is funded by ads and donations.
 

Re: How to permanetly disable recent files! Mint 14

Postby Orbmiser on Wed Dec 12, 2012 11:37 pm

Deleting recently-used.xbel file in
.local/share/recently-used.xbel
Will do it. Or writing a bash script to automate the process.
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How to permanetly disable recent files! Mint 14

Postby Alister on Thu Dec 13, 2012 12:40 am

Thanks! i saw similar posts saying something like you needed to implement some method to prevent it from just creating the folder again i tried moving the file you said into a folder to see and cleared the list and looked at stuff it just filled up again then i tried deleting it same thing? and i checked it is indeed just creating a new copy of the file again.

i haven't deleted it from the recycle bin but i figure this isnt the problem.
Alister
Level 1
Level 1
 
Posts: 8
Joined: Fri Apr 20, 2012 6:34 am

Re: How to permanetly disable recent files! Mint 14

Postby Orbmiser on Thu Dec 13, 2012 1:15 am

Well someone with experience can chime in and write a little bash script that can be run in the background.
And do like delete it ever so many minutes or ???
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How to permanetly disable recent files! Mint 14

Postby Alister on Thu Dec 13, 2012 2:29 am

Pretty sure theres a way to prevent it been created again via terminal of course whatever instructions i saw for mint 13 werent sufficent said the directorys didn't excist so alot of good that did.

Still appreicate you taken the time for the suggestion
Alister
Level 1
Level 1
 
Posts: 8
Joined: Fri Apr 20, 2012 6:34 am

Re: How to permanetly disable recent files! Mint 14

Postby Orbmiser on Thu Dec 13, 2012 2:39 am

It's there open term
orbmiser@Winterfell ~ $ cd .local/share/
then
orbmiser@Winterfell ~/.local/share $ ls
Will give you contents
applications gegl-0.2 keyrings totem
cinnamon gsettings-data-convert locale Trash
desktop-directories gthumb mateconf-gsettings-data-convert vlc
evolution gvfs-metadata recently-used.xbel webkit
freetuxtv icc tomboy
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How to permanetly disable recent files! Mint 14

Postby Alister on Thu Dec 13, 2012 4:35 pm

I'm not exactly to fluent with knowledge when it comes to this site of things what exactly am i meant to do with that and does it completely disable it? seems it targets several things on the computer i read somewhere that specific applications could cause it to regenerate as well weather that's what all thats about dunno?

Specific instructions will help i did have the idea of hopefully just right clicking it and changing its permissions to see if that does anything i'll give it a go. Even after changing as root it just changes back to read and write
Alister
Level 1
Level 1
 
Posts: 8
Joined: Fri Apr 20, 2012 6:34 am

Re: How to permanetly disable recent files! Mint 14

Postby Orbmiser on Thu Dec 13, 2012 5:52 pm

Yep it's a pain. As if it doesn't see a valid file to write to then will write one itself.
And would love to see an option of auto clear all recent files on logout or reboot.
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How to permanetly disable recent files! Mint 14

Postby TheForumTroll on Fri Dec 14, 2012 11:04 am

Let me get this right. You want the file deleted on a regular basis? You could just add it to cron. Doesn't sound like the best way to do it, but if you want to here's a howto:

https://help.ubuntu.com/community/CronHowto
PC: Intel I5-2500K || ASUS Sabertooth P67 || 4GB Corsair XMS3 || Gainward GTX 460 GS-GLH || OCZ Vertex 3 || Noctua NH-D14 || Corsair HX 750W || NZXT PanzerBox || Zalman ZM-MFC1+ || ASUS VW246H || Microsoft SideWinder X6 || Logitech G9 Lazer
TheForumTroll
Level 2
Level 2
 
Posts: 58
Joined: Tue Aug 21, 2012 3:47 am

Re: How to permanetly disable recent files! Mint 14

Postby Alister on Fri Dec 14, 2012 5:41 pm

Well you can accomplish it on windows systems which i have always used while this may seem like a conveiniant feature and sure it is for some it's not favoring anyones privacy if someone can just constantly look.

thanks i don't think i'm gonna be able to make heads or tails of that however
Alister
Level 1
Level 1
 
Posts: 8
Joined: Fri Apr 20, 2012 6:34 am

Re: How to permanetly disable recent files! Mint 14

Postby TheForumTroll on Fri Dec 14, 2012 7:33 pm

First of all, this not Windows, so there's always a way in the terminal if nothing else works. Both of the following methods work, but there might be better ways (maybe a GUI option? I'm new to Mint as I only installed it two days ago).


Lock the file:
Clear recently used files (in the menu). Open a terminal and type:
Code: Select all
sudo chattr +i .local/share/recently-used.xbel


If you want it back to normal use -i
Code: Select all
sudo chattr -i .local/share/recently-used.xbel


Deleting it with cron:
Open a terminal and type:
Code: Select all
crontab -e

If it asks what file editor to use, chose Nano if in doubt.
Enter the following at the bottom of the file (deletes the file every 10 minutes):
Code: Select all
*/10 * * * * rm .local/share/recently-used.xbel

or (deletes every hour):
Code: Select all
* */1 * * * rm .local/share/recently-used.xbel

CTRL+o to save. CTRL+x to exit.

I did a quick test and it worked fine for me.
PC: Intel I5-2500K || ASUS Sabertooth P67 || 4GB Corsair XMS3 || Gainward GTX 460 GS-GLH || OCZ Vertex 3 || Noctua NH-D14 || Corsair HX 750W || NZXT PanzerBox || Zalman ZM-MFC1+ || ASUS VW246H || Microsoft SideWinder X6 || Logitech G9 Lazer
TheForumTroll
Level 2
Level 2
 
Posts: 58
Joined: Tue Aug 21, 2012 3:47 am

Re: How to permanetly disable recent files! Mint 14

Postby kyphi on Fri Dec 14, 2012 9:26 pm

cron is not necessary but "touch" is. It changes the time-stamp of recently-used.xbel.

Use these commands and you will not be plagued by having any recent document listings:

Code: Select all
rm ~/.local/share/recently-used.xbel
touch ~/.local/share/recently-used.xbel
sudo chattr +i ~/.local/share/recently-used.xbel

To undo:
Code: Select all
sudo chattr -i ~/.local/share/recently-used.xbel
User avatar
kyphi
Level 5
Level 5
 
Posts: 771
Joined: Sat Jul 09, 2011 1:14 am
Location: Australia

Re: How to permanetly disable recent files! Mint 14

Postby TheForumTroll on Fri Dec 14, 2012 9:57 pm

Well, the point of using the GUI to clear the file was to use as few terminal commands as possible. Touch is not necessary as it doesn't get deleted (unless you delete it manually) and cron was an alternative way, not to be used together with chattr of course.

Actually cron might be the best option I have found so far, as I just read that "recently-used.xbel.xxxxx" tmp files are made and then moved to "recently-used.xbel". What happens when it cannot be moved I don't know. Nothing? Hundreds of tmp files? Perhaps recently-used.xbel could be made as a folder or symlink pointing to /tmp or /dev/null or something ? :roll:

A way to disable this feature is needed.


EDIT:
So it seems the correct way to disable this is setting "gtk-recent-files-limit = 0" in either .gtkrc, .gtkrc-2.0 or .config/gtk-3.0/settings.ini. Unfortunately this doesn't work in Cinnamon :|

EDIT 2:
Is this an academical discussion or am I missing something? Turning it off in the Cinnamon Settings removes it fine here :?:
PC: Intel I5-2500K || ASUS Sabertooth P67 || 4GB Corsair XMS3 || Gainward GTX 460 GS-GLH || OCZ Vertex 3 || Noctua NH-D14 || Corsair HX 750W || NZXT PanzerBox || Zalman ZM-MFC1+ || ASUS VW246H || Microsoft SideWinder X6 || Logitech G9 Lazer
TheForumTroll
Level 2
Level 2
 
Posts: 58
Joined: Tue Aug 21, 2012 3:47 am

Re: How to permanetly disable recent files! Mint 14

Postby Orbmiser on Sat Dec 15, 2012 6:32 am

EDIT 2:
Is this an academical discussion or am I missing something? Turning it off in the Cinnamon Settings removes it fine here :?:


Nope Cinnamon Settings just turns on/off the folder being displayed on the Menu. Doesn't actually touch or delete any files.
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: How to permanetly disable recent files! Mint 14

Postby TheForumTroll on Sat Dec 15, 2012 12:27 pm

I see. I'm curious to know why it matters? No one can see the file content, unless they know the users password and know where to look. In Windows turning the feature off doesn't stop the logging from happening either, so I don't really see the problem if the Windows way was good enough for OP.

Anyways, just lock the file with chattr or use another account for your p0rn collection and browsing :lol:

Code: Select all
find . -atime -1


:roll:
PC: Intel I5-2500K || ASUS Sabertooth P67 || 4GB Corsair XMS3 || Gainward GTX 460 GS-GLH || OCZ Vertex 3 || Noctua NH-D14 || Corsair HX 750W || NZXT PanzerBox || Zalman ZM-MFC1+ || ASUS VW246H || Microsoft SideWinder X6 || Logitech G9 Lazer
TheForumTroll
Level 2
Level 2
 
Posts: 58
Joined: Tue Aug 21, 2012 3:47 am

Re: How to permanetly disable recent files! Mint 14

Postby kyphi on Sat Dec 15, 2012 5:08 pm

If you use the string of commands that I gave above, you will find that after removing the "recently-used.xbel" file, "touch" creates it anew with a different time stamp and "chattr +i" ensures that it stays empty until revoked.
Programs such as LibreOffice Writer, Calc, Draw and Impress also have a "Recent Documents" menu entry. This can easily be turned off by modifying the menu via Tools, Customise, highlight Recent Documents, click on the Modify button and select delete. Unfortunately this is not a system wide modification but has to be repeated in each LibreOffice program.
...and don't forget The GIMP.
User avatar
kyphi
Level 5
Level 5
 
Posts: 771
Joined: Sat Jul 09, 2011 1:14 am
Location: Australia

Re: How to permanetly disable recent files! Mint 14

Postby erie88 on Wed Feb 06, 2013 3:48 am

If you don't want the bookmarks, places and recently files to show up on Menu, you can go to "Preferences - Cinnamon Settings - Menu tab" and untick/uncheck/unmark the "Show recent files" option. Done. It'll gone at least not visible on the menu.
erie88
Level 1
Level 1
 
Posts: 29
Joined: Mon Dec 31, 2012 11:24 am

Re: How to permanetly disable recent files! Mint 14

Postby sorensenbill on Wed Jun 05, 2013 2:04 pm

Easy permenant fix is to delete ~/.local/share/recently-used.xbel and replace it with an empty folder of the same name. It will prevent it being recreated and stops Gimp etc. in addition to the menu.
sorensenbill
Level 1
Level 1
 
Posts: 1
Joined: Wed Jun 05, 2013 2:02 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: hagensieker, niowluka, yatesco and 20 guests