Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am new in Linux and I have a doubt which I would like your help to solve.
The Linux distribution that I use is Red Hat 9.0. In this distribution, when you go click in Main Menu, there is a sub-menu called "Open Recent" (it looks like "My Recent Documents" in Windows XP).
I would like to know how can I clear the contents of "Open Recent" ??
if you are using kde there is a small clear button marked x. if you are using gnome there is a panel option. using the nautilus file manager. type preferences:/// and you will see all the settings u can change
Sorry, but I couldn't clear "Open Recent" with your suggestions.
In GNOME I tryied what you told me: typed " preferences:/// " , openned each one of the icons and searched for something related with "Open Recent"... but I couldn't find a way to clear it.
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19
Rep:
solution
I had the same problem on RH9 using Gnome. This is the way I cleared that menu:
1- choose the option to see ALL your files (hidden and backup too)
2- then look for a file in your home directory named ./recently_used or something of this kind
3- Delete it and logout: logging in you'll have no items in the Recent menu.
This is not the best solution I think, but at the moment i don't know anything better...
enigma1, can you post how you found the file and edited it? I am also a linux newbie and know jack squat about doing this stuff yet. It would be greatly appreciated.
Anything I write here, I beg the forgiveness of the linux Gods...
Open a Terminal
SU to root
type 'updatedb' and go get a cup of coffee.
When you have drunk the coffee, and the cursor has returned, type the following:
locate .recently-used (make sure you include the lil dot at the beginning)
That command will tell you where the file is located. I found it in
/home/xxxxxxxx/ (xxxxxx being the user)
close the terminal
from the K menu, choose Applications, File Tools, File Manager SuperUser mode.
When Konqueror starts, choose 'View' and check 'show hidden files'
Navigate to where the terminal told you the file was located.
Right click on the file 'recently used' and choose 'open with'
From the menu that appears, choose Applications/Editors/Gedit
The file will open, now just delete what you want rid of.
Apologies to all the purists who will say I could have done all that from a command line. I probably could, but I am slowly converting from Windows and I am still happy SEEING what's going on.
1. rm ~/.recently-used (delete the file - it's in your home directory)
2. touch ~/.recently-used (create a new one)
3. chmod u-w ~/.recently-used (remove writing permission to user)
now no program will be able to update it.. i was not able to manage a way to entirely disable the menu, but it's stil something
the prob is that programs which try to add elements to the file will result in an error sent to your console (for example gedit)
i put a line in my ~/.bashrc file (i use bash) to make an alias
4. add this --> alias gedit='gedit 2> /dev/null'
so that it will send error messages to null device
you should add an alias for every program giving errors to console
then i added a similar thing to the end of my .xinitrc file just cuz it was giving errors to the console when i launch X
5. exec gnome-session 2> /dev/null
it could be in your home dir ad .xinitrc or you can use a default one in /etc/X11/xinit/
maybe it's not a so good solution but it worked for me and i'm quite happy
hope it helps!!
byez
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19
Rep:
delete
I usually delete the whole file recently-used without editing it and everything works without problems: next time you open another file it will be created again. At the moment I have created an icon (a launcher for an idiot shell script... ) on my desktop, that removes this file and some others with a click... very nice.
in your ~/.xinitrc file so that when you start up the x session there will be no document in there.. it will only be updated when you kill (in gnome) the gnome-panel (killall gnome-panel), a thing that you wouldn't normally do..
if you exit and reenter x you won't se any change cuz the "script" is called when x starts...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.