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.

About these ads

6 Responses to “Cleaning up after Kazehakase”


  1. 1 Aleyscha 2007/12/18 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

  2. 2 Devoto 2009/08/08 at 6:47 AM

    Thanks for share this!
    xD
    sorry for my english, i speak spanish xD

    Ok, gracias por compartir este script, recientemente me mude a iceWM y al mundo de las consolas, pero desafortunadamente no encontraba un navegador que me convenciera, hasta que di con Kazehakase.
    Así que esta información es valiosa, irás al cielo xD

    Have a good day!

    Debian @ rocks !! :D


  1. 1 Kazehakase 0.4.7 is getting better « Motho ke motho ka botho Trackback on 2007/08/12 at 6:09 PM
  2. 2 Kazehakase on steroids « Motho ke motho ka botho Trackback on 2007/08/25 at 7:44 AM
  3. 3 Cleaning up is hard to do « Motho ke motho ka botho Trackback on 2009/07/24 at 9:24 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

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

Blog Stats

  • 3,958,212 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: