LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-06-2012, 09:44 PM   #1
apeitheo
Member
 
Registered: Apr 2006
Location: /home/apeitheo
Distribution: Slackware, Fedora, Ubuntu, openSUSE
Posts: 30

Rep: Reputation: 8
Lightbulb Mailcap generator for Firefox, Seamonkey, etc.


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!

Last edited by apeitheo; 08-06-2012 at 09:48 PM.
 
Old 08-10-2012, 04:59 AM   #2
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Nice, guess this should work with KDE as well. Would be cool if it could update an existing file as an option.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] codelite crash, after message Mailcap file /etc/mailcap, line 111.... kaz2100 Linux - Software 1 09-05-2011 07:20 PM
LXer: SeaMonkey: More Than Just a Firefox Clone LXer Syndicated Linux News 0 05-11-2011 04:10 PM
flash sound in firefox but not seamonkey gordonholbrook Linux - Desktop 4 10-12-2010 04:02 PM
Help I need to know how to switch my browser from Mozilla firefox to seamonkey teana Linux - Newbie 10 06-09-2010 02:55 PM
firefox / seamonkey plugins johnh10000 Linux - Newbie 1 07-05-2009 10:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration