Gen*_*nie 7 ubuntu images xdg-open
我只是找不到显示 *.png 图像的命令!我试过xdg-open
命令但它失败了:
[student@seqpapl1 Images]$ xdg-open adapter_content.png
xdg-open: no method available for opening 'adapter_content.png'
Run Code Online (Sandbox Code Playgroud)
我目前在服务器上运行 ubuntu linux。
使用mimeopen -d
设置默认应用程序:
mimeopen -d image.png
Run Code Online (Sandbox Code Playgroud)
示例输出:
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)
Run Code Online (Sandbox Code Playgroud)
选择您的默认应用程序,下次您将可以使用:
mimeopen image.png
Run Code Online (Sandbox Code Playgroud)
或者:
xdg-open image.png
Run Code Online (Sandbox Code Playgroud)