I decided to take it upon myself to fix an issue that's been bothering me for a while: the way Firefox presents default applications for opening files. Debian and its derivatives are the only distributions I'm aware of that include mailcap entries for each package. On Slackware, unless you create a mailcap file yourself, Firefox won't provide any default applications when you go to open a file (pdf, doc, whatever). After taking a look at Xfce's MIME Type Editor, I figured I would attempt to have my program copy the default and user-specified applications and convert it into a mailcap file.
Introducing my mailcap generator for Gnome/Xfce:
http://sencha.denetron.net/mime-0.1.tar.gz
To create either a ~/.mailcap or /etc/mailcap file, simply extract and make && ./mime ~/.mailcap (or make && su -c ./mime /etc/mailcap to have it system-wide). Please note that if you already have a custom .mailcap file, it'll overwrite it if that's the file you specify--it does not update the existing file (yet).
I'm fairly new at programming and I don't consider this to be perfect, but I hope to get some feedback from the Slackware community (and constructive criticism of my code would be highly appreciated).
Enjoy!