[Portland-bugs] [Bug 39166] New: For xdg-mime query filetype, use file --mime-type, not file -i

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 12 03:44:49 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39166

           Summary: For xdg-mime query filetype, use file --mime-type, not
                    file -i
           Product: Portland
           Version: 1.1.0 rc1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
        AssignedTo: portland-bugs at lists.freedesktop.org
        ReportedBy: rrt at sc3d.org


file -i prints a string like "text/plain; charset=utf-8", while xdg-mime is
supposed to return just a MIME type, i.e. "text/plain". file --mime-type prints
just the required information.

(I'm a maintainer of file, so feel free to ask for clarification of file's
operation if you need it.)

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


More information about the Portland-bugs mailing list