I'm trying to get xdg-open to open css files with correct editor, but can't get file
to report correct mimetype for a file.css file. There is an entry both in /etc/mime.types and a file already exist as /usr/share/mime/text/css.xml but this always happens:
➜ ~ echo ". {}" > file.css
➜ ~ file --mime-type file.css
file.css: text/plain
➜ ~
When I trace the code, I see that it uses magic instead of /usr/share/mime/text mime db. How can I get file to report this as text/css instead of text/plain?