Re: [Muine] M4A mime detection
- From: Peter Johanson <latexer gentoo org>
- To: Matthew Good <muine matt-good net>
- Cc: Muine Mailing List <muine-list gnome org>
- Subject: Re: [Muine] M4A mime detection
- Date: Wed, 2 Feb 2005 08:51:36 -0800
On Wed, Feb 02, 2005 at 11:27:03AM -0500, Matthew Good wrote:
> I built Muine with m4a support enabled, but I've been unable to play the
> songs in it. It looks like Gnome isn't detecting the mime type of the
> m4a files (in Nautilus the properties dialog shows
> application/octet-stream) so Muine ignores the files.
>
> I'm using Ubuntu/Gnome 2.8, and I can see the m4a entries in
> gnome-vfs.mime and gnome-vfs-mime-magic, so I'm not sure what I'm
> missing here.
the shared-mime-info package hasn't yet been updated to include checking
for these files. Please see
https://bugs.freedesktop.org/show_bug.cgi?id=604 for a patch. This
didn't really apply what need to be though, since it's for the source
package, and not for the installed system.
The relevant section in /usr/share/mime/packages/freedesktop.org.xml
should look like (context around the pieces added so you can see where
they added it):
<snip>
<mime-type type="audio/x-flac">
<comment>FLAC audio</comment>
<comment xml:lang="no">FLAC-lyd</comment>
<glob pattern="*.flac" />
</mime-type>
<mime-type type="audio/x-m4a">
<comment>AAC audio</comment>
<magic priority="50">
<match type="string" value="ftypM4A" offset="4"/>
</magic>
<glob pattern="*.m4a"/>
<glob pattern="*.aac"/>
</mime-type>
<mime-type type="audio/midi">
<alias type="audio/x-midi" />
</snip>
After adding it, you need to do:
# update-mime-database /usr/share/mime
which will update the database. You'll prolly have to log out and in of
gnome again for the new mime info to get picked up.
-pete
--
Peter Johanson
<latexer gentoo org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]