I'm attempting to track down a problem with a particular CSS file being returned as text/html instead of text/css.

file -mime install.css returns some less useful info:

install.css: text/x-c; charset=us-ascii

So I was encouraged to use xdg-mime instead:

[box]# xdg-mime query filetype install.css
xprop:  unable to open display ''
usage:  xprop [-options ...] [[format [dformat]] atom] ...

What am I missing?


I was logged in over ssh. Logging in via noMachine and issuing the command on a terminal in that session worked. No idea why it fails over ssh.

  • 1
    Try to login with ssh -X if you have an X Server installed on your remote machine. This will forward the DISPLAY to your local machine. – Sven Oct 9 '12 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.