[Howto] [Linux] [Look and Feel] [Tips and Tricks]
Linux Tip: How to Clean Up KDE on Logout
Don't want to miss a single bit? Subscribe to our RSS Feed!
Windows has a plenty of programs that do stuff like clean out your web cache, remove temporary files and all sorts of other stuff when you logout. Wouldn't it be cool to do this on Linux too? With KDE, you don't need to even install any new software, as the startkde script will automatically run scripts you put in special places.
First, you need to open Terminal and create a directory called shutdown in your .kde directory:
mkdir /home/username/.kde/shutdownNow create a script to do any stuff you like on shutdown. Here is an example:
#!/bin/bashNow make sure you set the correct permissions:
#clear up temp folder
rm -rf ~/tmp/*
#clear out caches
rm -rf ~/.ee/minis/*
rm -rf ~/.kde/share/cache/http/*
# delete konqueror form completions
rm ~/.kde/share/apps/khtml/formcompletions
chmod ug+x ~/.kde/shutdown/cleanup.sh(or whatever you called it). As well as cleaning up sensitive files, you can also have global shutdown scripts for all users, by placing the script in your default KDE folder, in a subfolder called shutdown. To find out which is your default KDE directory, try:
kde-config --path exe
Did you enjoy this post? Why not leave a comment below and continue the conversation, or Subscribe to Feed and get articles like this delivered automatically to your Email or feed reader.
0 comments:
Post a Comment