Cleaning up after Kazehakase

I really love Kazehakase: It’s light, it’s fast, it’s clean and it does things that Firefox hasn’t thought of yet, or maybe needs a plugin to do (like a Tab Tree rather than just a list of active tabs, or a thumbnailed history of closed pages).

It does have some shortcomings, though. For one thing, the version I’m using (0.3.8 in Edgy) is a bit sloppy when it comes to cleaning up after itself. I don’t like leftover caches, or an item history in the drop-down URL bar. And I resent leftover cookies. I want each browser session to start clean and fresh.

I couldn’t find options to clear those items on exit, although it’s possible that the Feisty version (0.4.2, I believe) will have those in place. In the meantime, I’ve resorted to a bash script. Here’s what it looks like.

#!/bin/sh
kazehakase
rm ~/.kazehakase/mozilla/kazehakase/cookies.txt
rm ~/.kazehakase/mozilla/kazehakase/Cache/*
cp ~/.kazehakase/kzrc.orig ~/.kazehakase/kzrc

In other words, start Kazehakase as usual, then when finished, delete the cookies file, anything cached and then restore a fresh kzrc. I keep a kzrc.orig with no leftover history (under [LocationEntry] inside kzrc), and just overwrite the one Kazehakase makes when it closes.

You could even preset kzrc.orig to hold some of the URLs you actually want in the address bar history. When you start Kazehakase, those URLs would be in the history already, but nothing from your last session would be. Mmm, that fresh, clean feeling.

For me it’s a particularly easy thing to trigger that bash script, since I just point the Openbox menu at the script and everything behaves as usual. I’m sure it’s as simple under other desktop environments or with different window managers.

3 Responses to “Cleaning up after Kazehakase”


  1. 1 Aleyscha December 18, 2007 at 8:54 am

    hi! greeeeeat thing you add to kazehakase :P it’s the only thing i miss from firefox apart from the rss feeds i have in it… but i change your script the kazehakase line to the end, to clean and then enter…

    Arch Linux Rulez :P

  1. 1 Kazehakase 0.4.7 is getting better « Motho ke motho ka botho Trackback on August 12, 2007 at 6:09 pm
  2. 2 Kazehakase on steroids « Motho ke motho ka botho Trackback on August 25, 2007 at 7:44 am

Leave a Reply




Welcome!

Most recent desktop


May 8, 2008
XFCE 4.4.2 on Crux Linux
750Mhz Celeron 128Mb PC100

Most recent game

Gnome Mahjongg on Debian 550Mhz Celeron 192Mb PC100

Be counted!

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blogs worth watching

Ubuntu Feeds

Blog Stats

  • 597,100 hits

Categories