I just can't find the command to display a *.png image! I tried xdg-open command but it failed:

[student@seqpapl1 Images]$ xdg-open adapter_content.png 
xdg-open: no method available for opening 'adapter_content.png'

I am currently running ubuntu linux on the server.

  • 4
    What terminal program are you using? On what sort of machine? In what environment? it's possible you could just install something like imgcat depending on the answers to these questions. – DopeGhoti Jan 2 '19 at 19:55
  • Are you remoting in to the server? Do you have an xterm session running? – Joe Healey Jan 2 '19 at 20:33
  • Yes, I am remoting in to the server. – Genie Jan 2 '19 at 21:20

Use mimeopen -d to set the default application:

mimeopen -d image.png

sample output:

Please choose a default application for files of type image/png
1) ImageMagick (color depth=q16)  (display-im6.q16)
2) GNU Image Manipulation Program  (gimp)
3) Feh (feh)

Select your default application , next time you will be able to use:

mimeopen image.png


xdg-open image.png
|improve this answer|||||

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.