LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-16-2003, 01:21 PM   #1
Guigo
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Red Hat 9.0 / Fedora Project Core 1
Posts: 12

Rep: Reputation: 0
Question How Can I Clear/Remove "Open Recent" ??


Hi folks,

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" ??

I will be waiting for your help!!!

Thanks...
 
Old 08-16-2003, 02:46 PM   #2
rahulsundaram
Member
 
Registered: May 2003
Location: India
Distribution: Knoppix, RedHat
Posts: 246

Rep: Reputation: 30
hi

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

hope that helps
regards
rahul
 
Old 08-17-2003, 10:02 AM   #3
Guigo
LQ Newbie
 
Registered: Aug 2003
Location: Brazil
Distribution: Red Hat 9.0 / Fedora Project Core 1
Posts: 12

Original Poster
Rep: Reputation: 0
Unhappy

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.

In KDE I didn't find the " x" that you told me.

Can you give me more and specific instructions??

Thank you...

...Guigo.
 
Old 08-22-2003, 05:02 AM   #4
enigma1
LQ Newbie
 
Registered: Aug 2003
Location: U.K.
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 0
I also am trying to find out how to clear this menu. I also tried all the icons in preferences and could not find any way to clear the menu.
 
Old 08-22-2003, 10:21 AM   #5
sbaguz
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19

Rep: Reputation: 0
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...

 
Old 08-22-2003, 06:08 PM   #6
enigma1
LQ Newbie
 
Registered: Aug 2003
Location: U.K.
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 0
sbaguz..........that worked for me, thanks!!!

the file was called .recent-used. I edited it with GEDIT and just deleted the lines I wanted rid of.

Thanks again!

James
 
Old 09-15-2003, 03:44 PM   #7
crossman
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
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.
 
Old 09-15-2003, 04:44 PM   #8
enigma1
LQ Newbie
 
Registered: Aug 2003
Location: U.K.
Distribution: Mandrake 9.1
Posts: 7

Rep: Reputation: 0
most recent used

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.


enigma1
 
Old 09-15-2003, 09:09 PM   #9
smazzux
LQ Newbie
 
Registered: Sep 2003
Location: Italy
Distribution: Slackware 9.1, RedHat 6.2, RedHat 8.0, Fedora Core 1, FreeBSD 5.0, Coyote Linux
Posts: 15

Rep: Reputation: 0
how i did it

i've found this workaround..

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
 
Old 09-17-2003, 10:44 AM   #10
sbaguz
LQ Newbie
 
Registered: Jul 2003
Location: Italy
Distribution: SuSE 10.1; Puppy Linux; Slax; Red Hat 9
Posts: 19

Rep: Reputation: 0
Wink 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.
 
Old 09-17-2003, 01:24 PM   #11
smazzux
LQ Newbie
 
Registered: Sep 2003
Location: Italy
Distribution: Slackware 9.1, RedHat 6.2, RedHat 8.0, Fedora Core 1, FreeBSD 5.0, Coyote Linux
Posts: 15

Rep: Reputation: 0
yeah, it's also possible to add a line like

rm -f ~/.recently-used

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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 06:37 AM
how do i replace the clear "clear screen" with the cls command thefedexguy SUSE / openSUSE 2 12-02-2005 06:02 PM
"open recent" menu enigma1 Linux - Software 2 08-10-2004 10:26 PM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM
clear 'open recent' on the red hat menu ? DigitalTygrrr Red Hat 3 10-25-2003 11:56 AM


All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration