Bug 13919 - xdg-mime quits too easily when determining MIME type of file
Summary: xdg-mime quits too easily when determining MIME type of file
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 21:38 UTC by W. Michael Petullo
Modified: 2010-07-09 08:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description W. Michael Petullo 2008-01-03 21:38:34 UTC
Description of problem:
Unix traditionally looks at the contents of a file instead of just its extension
when determining a file's MIME type. The xdg-mime utility does not do this -- it
seems to only look at the file's extension. This limits its usefulness.

Version-Release number of selected component (if applicable):
xdg-utils-1.0.2-2.fc8

How reproducible:
Every time

Steps to Reproduce:
xdg-mime xdg-mime query filetype /etc/passwd
  
Actual results:
Program prints "application/octet-stream"

Expected results:
Should print "text/plain"

Additional info:
Adding the "--slow-mime" option to xdg-mime's use of gnomevfs-info solves this
problem.
Comment 1 Rex Dieter 2010-07-09 08:13:28 UTC
thanks, fixed in cvs.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.