Re: MIME Type incorrectly applied
[email protected] Sat, 17 Mar 2012 08:06:21 -0500
| Newsgroups | gmane.comp.desktop.rox.user |
|---|---|
| Message-ID | <593f4db47afc892e464901546dc66b53.squirrel@emailmg.dot5hosting.com> |
>> I'm a new ROX user, and I'm setting up my various configurations. I've
>> run across at least one incorrectly applied mime-type, though. In my
>> music folders, I have an *.m3u file which holds the playlist for the
>> directory. When I try to apply an action to it (Audacious, in my case),
>> ROX wants to change the action for "text/plain" I looked up where *.m3u
>> might be referenced in /usr/share/mime, and found these entries:
> I suspect it's using libmagic (the file command) to get MIME info. I've
> found that, under ROX, file extensions don't matter.
>
> - Alex
Looking at the source directories, it appears to be using the XDG MIME
libraries, including xdgmimeglob.{c,h} which suggests to me that yes, it
does consider filename extensions. (or should). Whether ROX is actually
using the information returned by those routines rather than depending on
the file magic information is the question.
--Victor Wren
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure