<div dir="ltr">I am assuming you are using XML files under the shared-mime-info spec? If so, the only way I have found to get the MIME types to associate with icons at a system level is to use the <generic-icon name=""/> tag inside each MIME entry. I tried just using the <icon name=""/> tag, but that doesn't work for MIME types installed "system level." I am not sure how this will be affected by the Flatpak sandboxing though, but it might be good to give that tag a try and see if it works.<div><br></div><div>-Ian</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 9:37 AM Bryce Carson <<a href="mailto:bryce.a.carson@gmail.com">bryce.a.carson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I can successfully package the new mimetype, text/slim, so files with the .SLiM extension are of the mimetype.<div dir="auto"><br></div><div dir="auto">However, the application instead uses the mimtype icon rather than the icon in hicolor/apps/rDNS.svg, and no icon is applied to the .slim files.</div><div dir="auto"><br></div><div dir="auto">This seems a little poorly documented. I've read a couple issues on the topic and there's mention of a prefix which should be the same, but no permutation of naming I've tried has worked as expected.</div><div dir="auto"><br></div><div dir="auto">What is the proper way to package an icon for mimetypes and have it applied to the mimetype specified in the XML?</div></div>
_______________________________________________<br>
Flatpak mailing list<br>
<a href="mailto:Flatpak@lists.freedesktop.org" target="_blank">Flatpak@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/flatpak</a><br>
</blockquote></div>