0
alik.balm@Vostro-3800-3 ~ $ hostnamectl
   Static hostname: Vostro-3800-3
         Icon name: computer-desktop
           Chassis: desktop
  Operating System: Linux Mint 18.2
            Kernel: Linux 4.8.0-53-generic
      Architecture: x86-64

我尝试用 lpr 打印 doc 文件,它给了我

lpr: unsupported document-format "application/msword".

但是,当我使用 lpr 打印 docx 文件时,一切正常

根据CUPS Linux: Help printing these media types: MS Excel, MS Word and HTML i find line in file /etc/mailcap

application/vnd.openxmlformats-officedocument.wordprocessingml.document; soffice --nologo --writer '%s'; edit=soffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Office Open XML Document"; nametemplate=%s.docx

对于 doc 文件

application/msword; soffice --nologo --writer '%s'; edit=soffice --nologo --writer '%s'; test=test -n "$DISPLAY"; description="Microsoft Word Document"; nametemplate=%s.doc

如何在 /etc/mailcap 中为 doc 文件添加正确的条目

对不起我的英语

4

0 回答 0