x-asmsrc.xml:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="text/x-asmsrc">
<comment>ASM source code</comment>
<glob pattern="*.asm"/>
<glob pattern="*.inc"/>
<glob pattern="*.frm"/>
</mime-type>
</mime-info>
x-freshproject.xml:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-freshproject">
<comment>Fresh IDE project</comment>
<magic priority="50">
<match type="string" offset="0" value="FNPr\r\n\x1a\n" />
</magic>
<glob pattern="*.fpr"/>
</mime-type>
</mime-info>
Then I am calling:
Code: Select all
xdg-icon-resource install --context mimetypes --size 16 ./x-asmsrc.png text-x-asmsrc
xdg-icon-resource install --context mimetypes --size 16 ./x-freshproject.png application-x-freshproject
Code: Select all
xdg-mime install x-asmsrc.xml
xdg-mime install x-freshproject.xml
But the problem! In PCManFM, only application/x-freshproject files are displayed with the proper icon. text/x-asmsrc are displayed with the generic text file icon.
In other file managers tested the text/x-asmsrc files are displayed with the correct icon "x-asmsrc.png" icon.
What are the reasons for such behavior? What I can make to fix it?
Regards