0
点赞
收藏
分享

微信扫一扫

LINUX一个正确的mime xml范例


  经过反复测试,正确如下:

<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">

<mime-type type="application/ts-office.docx">
<comment>Microsoft Word Document</comment>
<comment xml:lang="zh_CN">Microsoft Word 文档</comment>
<comment xml:lang="zh_TW">Microsoft Word 文件</comment>
<alias type="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
<generic-icon name="ts-office-docx"/>
<glob pattern="*.docx" weight="70"/>
<glob pattern="*.doc" weight="70"/>
<glob pattern="*.rtf" weight="70"/>
</mime-type>

<mime-type type="application/ts-office.uot">
<comment>UOT document</comment>
<comment xml:lang="zh_CN">UOT 文档</comment>
<comment xml:lang="zh_TW">UOT 文件</comment>
<sub-class-of type="application/zip"/>
<generic-icon name="ts-office-uot"/>
<glob pattern="*.uot" weight="70"/>
</mime-type>

</mime-info>

  有人说这有什么讲究?吾亦不是太清楚。如果不按照这个写,图标就不一定对。当然,这个是在吾测试系统上。有的系统可能要求就宽松点。


举报

相关推荐

0 条评论