08/02/23 15:15:33 PZ9xZnVE
>>627
nautilusならshared-mime-infoの定義を見てる。
/usr/share/mime/packages/freedesktop.org.xmlなんか見るとわかると思うよ。
例えばCソースなら、こう定義されてる。
<mime-type type="text/x-csrc">
<sub-class-of type="text/plain"/>
<comment>C source code</comment>
.........
<comment xml:lang="ja">C ソースコード</comment>
.........
<glob pattern="*.c"/>
<magic priority="30">
<match value="/*" type="string" offset="0"/>
<match value="//" type="string" offset="0"/>
<match value="#include" type="string" offset="0"/>
</magic>
</mime-type>