[Portland-bugs] [Bug 13919] New: xdg-mime quits too easily when determining MIME type of file

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 3 21:38:34 PST 2008


http://bugs.freedesktop.org/show_bug.cgi?id=13919

           Summary: xdg-mime quits too easily when determining MIME type of
                    file
           Product: Portland
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: freedesktop at flyn.org


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.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Portland-bugs mailing list