Request assistance in finding "Write to CD" context menu item

Joe Marcus Clarke marcus at marcuscom.com
Sat Dec 4 12:42:29 PST 2004


On Sat, 2004-12-04 at 12:32 -0800, Sean McNeil wrote:
> On Sat, 2004-12-04 at 14:53 -0500, Joe Marcus Clarke wrote:
> > > When I click on the file it says that the filename indicates it is a
> > > "raw CD image" but the contents indicate "application/x-arc".  So it is
> > > a mime-type issue.  The burner code only allows for
> > > "application/x-iso-image" and "application/x-cd-image".  I can actually
> > > open it as an archive  via. 'Open with "Archive Manager"' so it would be
> > > great to keep that functioning.  I guess when I select the item it digs
> > > into the contents and then changes the mime-type to "application/x-arc"
> > > where it ends up removing the burn option.
> > > 
> > > So now the question is where should I look for mime-type lookup so I can
> > > determine why it isn't coming out as "application/x-iso-image"?  This
> > > looks like pretty complicated code and I got stuck tracking it down
> > > through eel2 where it looks like it was only looking at the uri part
> > > before the ":".  Must have got lost :(
> > 
> > Most likely, you need to promote the x-iso-image type ahead of the other
> > type in the MIME database in either /usr/X11R6/share/mime
> > or /usr/local/share/mime.
> 
> Looking at /usr/local/share/mime/packages/freedesktop.org.xml I think
> there is something wrong with mime-type determination on amd64.  x-arc
> has the following:
> 
>   <mime-type type="application/x-arc">
>     <magic priority="50">
>       <match value="0x0000081a" type="little32" offset="0" mask="0x8080ffff"/>
>       <match value="0x0000091a" type="little32" offset="0" mask="0x8080ffff"/>
>       <match value="0x0000021a" type="little32" offset="0" mask="0x8080ffff"/>
>       <match value="0x0000031a" type="little32" offset="0" mask="0x8080ffff"/>
>       <match value="0x0000041a" type="little32" offset="0" mask="0x8080ffff"/>
>       <match value="0x0000061a" type="little32" offset="0" mask="0x8080ffff"/>
>     </magic>
>   </mime-type>
> 
> but when I look at any of the *.iso files I have the first umpteen bytes
> are zero.  None of the above should have matched.

Yep, see https://bugs.freedesktop.org/show_bug.cgi?id=1506.  I'll commit
this fix.

Joe

> 
-- 
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20041204/e011f021/attachment.bin


More information about the freebsd-gnome mailing list