Crimperman.org - not ashamed of the gospel - CrimperBlog © Copyright Ryan P. Cartwright
 

A blog (short for Web Log) is a way of posting writings, thoughts or just plain inane ramblings to the web in a easy manner. It's easier to keep updated and as my site has proven troublesome to keep updated, I've employed a blog here to help keep things current.

Some of these "posts" may not be explicitly Christian - that is they may not be Bible studies :o) but all of them are written from my perspective as a Christian. It is , after all, part of what makes me... well, me.

Note that the blog pages are subject to a different licence to the rest of the site - see the bottom of the page for details.

 

10 years on the web

Tuesday, May 23, 2006

Although I've been using the Internet (in various forms)ing for a little longer, it has occurred to me that this years marks the tenth anniversary of my web presence in the form of websites.
Crimpermans Christian Freebies started life in 1996 as a way to distribute my Christian desktop themes, other sites were added and around 5 yeasr ago I merged them all into the site you see before you (obviously I've updated the content since then!).
Of course a lot has changed since then, in terms of the Wordl wide web and me but some things remain the same. I'm still having the make sure my web pages can load on on dial-up connections for a start. It's not that I expect everyone to pay for broadband if they don't need it but I have to say that ten years ago I expected the basic connection speed would be a lot faster than 56k!

cheers
C
Copyright Ryan P. Cartwright.
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License

 

Using KDE dialogs in Firefox and Thunderbird

Tuesday, May 09, 2006

As you may have guessed I use both Linux (Debian) and Firefox at work and home. Within Debian I use the KDE desktop and for some time it has bugged me no end that firefox (and Thunderbird for that matter) use the GTK dialogs (as used in GNOME. Now there's nothing wrong with these per-se but what bugs me is that I choose to use KDE and therefore pretty much all my desktop applications use the typical KDE open, save and print dialog boxes - except Firefox and thunderbird and try as I might I couldn't find a way to switch them over....
Until now...
Kde - How To: integrate Firefox with KDE - Ubuntu Forums
That is a link to a Ubuntu forum (Ubuntu is another Linx distribution based on Debian) which explains how to get firefox to use the KDE dialogs. It works a treat and can be transposed to Thunderbird as well.
For those who don't want to hop over there - or in case the post isappears in the future, here's the relevant details...


  1. Find the system-wide firefox components directory. For Debian it is /usr/lib/firefox/components.

  2. Edit the file called nsFilePicker.js in that directory (you may need to be root)

  3. Find the following piece of code

    compMgr.registerFactoryLocation(FILEPICKER_CID,
    "FilePicker JS Component",
    // *really long comment here*
    "",
    // *really long comment here*
    fileSpec,
    location,
    type);

  4. Edit it to look like this


    compMgr.registerFactoryLocation(FILEPICKER_CID,
    "FilePicker JS Component",
    // *really long comment here*
    FILEPICKER_CONTRACTID,
    // *really long comment here*
    fileSpec,
    location,
    type);

  5. Save the file

  6. You'll now need to refresh the firefox chrome registry which is easiest done by installing or removing an Extension (Look under the tools menu) and restarting firefox.


That's it. If you want to make similar changes to Thunderbird edit the nsFilePicker.js file in the thunderbird components directory (in Debian this is /usr/lib/thunderbird/components/").

On restarting firefox the standard GTK open, save and print dialogs are all replced by the typical KDE ones for your system. Incindentally this also resolves a problem with firefox defaulting to letter size paper for rpinting (not good if you're not in the USA).

Cheers
C
Copyright Ryan P. Cartwright.
Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License