Re: ROX and jars and zips

Stephen Watson <[email protected]>
Newsgroups gmane.comp.desktop.rox.user
Message-ID <[email protected]>
Mithat Konar <[email protected]> wrote:

> I've got two different versions of ROX-Filer on my Ubuntu Jaunty setup.
One is the version packaged by Ubuntu (2.5) and the other the latest bin
from http://sourceforge.net/projects/rox/files/rox/ (2.10).
> 
> The Ubuntu package version seems to differentiate between *.zip and *.jar
files just fine. However, when I use the 2.10 download, it seems to insist
that jars are zips. I installed the 2.10 download in ~/.local/lib, have a
link to it in ~/.local/bin, and have ~/.local/bin in the PATH.
> 
> I can't figure out where each are getting their MIME info or otherwise
figure out what's going on. Help?

2.5 used a 2005 implementation of the XDG MIME database, 2.10 uses a 2007
implementation.  There appears to be a bug in the new code:

 * application/x-java-archive has an alias application/x-jar
 * the glob matching returns *both* type names
 * the magic matching fails to match the application/x-java-archive because
the 0xCAFE match might not be in the correct place
 * the magic matches a Zip file, because it is.

It looks like the XDG code needs either an update or a bug fix.

-- 
Stephen Watson     http://www.kerofin.demon.co.uk/
If you read this on a mailing list, send any reply back to the list and not
to me.  Not even CC.
Lots of planets have a north

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.