Tech Support Forum banner
Status
Not open for further replies.
1 - 5 of 5 Posts

·
Henry
Joined
·
3,490 Posts
Discussion Starter · #1 · (Edited)
Cleaning the "Run" stuff

I've used the run dialog box a few times, but all of the stuff I've "run" doesn't empty out when I log out.... I don't like typing stuff in and it popping up and screwing me all up.

Where is the CCleaner for Linux???????
 

·
Registered
Joined
·
3 Posts
I don't know what desktop (KDE, Gnome, etc) you're using, but they all store that sort of data in hidden folders (in your home folder) that start with a dot. '.gnome' or '.kde' for example. You can see them in Konqueror by clicking 'show hidden files' on the menu. On the command line, type 'ls -a' to see them.

Search the hidden folders' contents for something you typed in the run dialog recently, and when you find the file that holds all that stuff, delete it. You might even be able to change that file's permissions to keep it from logging everything in the future.

There *is* probably a simpler method, specific to your desktop environment, though.
 

·
Henry
Joined
·
3,490 Posts
Discussion Starter · #3 ·
Gnome; I went to .gnome and there were two folders, but they had nothing in em......
 

·
Registered
Joined
·
3 Posts
Okay, here's what I had to do to clear mine.

There is a file at /home/username/.gconf/apps/gnome-settings/gnome-panel/%gconf.xml that holds all the recently run commands. You can delete this by running:

rm -i /home/username/.gconf/apps/gnome-settings/gnome-panel/%gconf.xml

..but before you do that, take a look at the file to make sure it isn't used for anything else on your system. Mine only stores that stuff, but your's might not.

That isn't quite enough, though. Gnome also keeps the history in your current session data, and will recreate the file when you log out. Open up

/home/username/.gconfd/saved_state

in a text editor, and remove the line that starts with

ADD 3909091333 "def" "/apps/gnome-settings/gnome-panel" "IOR:01....

The number will probably be different for you, though. Just be sure to remove the whole line, even if your text editor wraps it. Then you can log out and back in again, and it will be cleared.

I would suggest that if you're doing something you want cleared that badly, you use a terminal and then run:

echo > /home/username/.bash_history

since that's easier. It's kind of cool to know how to both though.
 

·
Henry
Joined
·
3,490 Posts
Discussion Starter · #5 ·
It was nothing bad in there, just I had (thanks to you :smile: ) app names which I didn't have on my computer (xine & VLC) and misspelled names (grkhunter and /rkhunter instead of rkhunter).

Thank you :smile:

Thread Solved
 
1 - 5 of 5 Posts
Status
Not open for further replies.
Top