Mimetype Icons applied to application and not files of mimetype

Ian McInerney Ian.S.McInerney at ieee.org
Mon May 3 14:33:10 UTC 2021


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.

-Ian

On Mon, May 3, 2021 at 9:37 AM Bryce Carson <bryce.a.carson at gmail.com>
wrote:

> I can successfully package the new mimetype, text/slim, so files with the
> .SLiM extension are of the mimetype.
>
> 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.
>
> 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.
>
> What is the proper way to package an icon for mimetypes and have it
> applied to the mimetype specified in the XML?
> _______________________________________________
> Flatpak mailing list
> Flatpak at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/flatpak
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20210503/bb0d4a40/attachment.htm>


More information about the Flatpak mailing list