[haiku-bugs] [Haiku] #7353: Expander: use mime type/sniffer to detect archive type as fallback

  • From: "umccullough" <trac@xxxxxxxxxxxx>
  • Date: Wed, 09 Mar 2011 04:56:36 -0000

#7353: Expander: use mime type/sniffer to detect archive type as fallback
-------------------------+------------------------------
 Reporter:  umccullough  |        Owner:  nobody
     Type:  enhancement  |       Status:  new
 Priority:  normal       |    Milestone:  R1
Component:  - General    |      Version:  R1/Development
 Keywords:               |   Blocked By:
 Blocking:               |  Has a Patch:  0
 Platform:  All          |
-------------------------+------------------------------
 It seems that I have downloaded a .tgz file that has the wrong extension
 (it's actually a .tar). Someone told me this was possibly a Web+ bug, but
 that doesn't matter.

 What I'd like is for Expander to not fail trying to extract this file, but
 to recognize it's really a .tar file instead. It seems the mime sniffer
 has figured this out, so it would be nice if that was the fallback when no
 files were located in the archive based on the extension.

 The file in question is the tuxpaint archive downloaded from here using
 Web+:

 http://zeta-games.com/remository/start-
 download/13-educational/113-tuxpaint-0.9.21-haiku.html

 Note, when I download it with Chrome on Windows, it does appear to be a
 proper .tgz, but with Web+ on Haiku, I have to rename it .tar (or
 eliminate the extension entirely) before Expander can unarchive it.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7353>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: