Workaround which really works. Use `xdg-mime query filetype FILE_PATH` instead of `file -b --mime-type FILE_PATH`. But you have to ensure you've installed gvfs-bin for it to work, because there is also a bug in xdg-mime, which makes it not working if gvfs-bin is not installed.
See also : http://us.generation-nt.com/answer/bug-618624-xdg-utils-xdg- mime-query-filetype-file-no-output-at-due-missing-recommends- help-202577262.html -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/518769 Title: Python script mime type is text/x-java ! To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/file/+bug/518769/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs