Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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