[Fedora-packaging] mime type not associating with gui application

Erik Blankinship erikb at mediamods.com
Tue Feb 15 21:44:08 UTC 2011


>
>
> > - In my spec I have successfully used xdg-mime and xdg-icon-resource so
> > that files with my custom extension (.supes) has my custom icon.
>
> bad.  xdg-* tools are intended for user-space, not system-space (ie, not
> to be used in pkg scriptlets).
>
> See here for details,
> https://fedoraproject.org/wiki/Packaging/ScriptletSnippets
>
> sections on 'desktop-database', 'mimeinfo', and possibly 'icon-cache'
>
>
Thanks Rex!  I did not notice my icons and mime types associations were
being set on rpmbuild.  Now I have my application associated with my custom
mime-type using scriptlets.

However, I am not clear on how I am supposed to associate files with my
mime-type with a custom icon.

xdg-icon-resource made it pretty simple to associate an icon with a
mimetype, but if I am reading
https://fedoraproject.org/wiki/Packaging/ScriptletSnippets#Icon_Cachecorrectly,
I need to create an icon for every theme?  Is there a preferred
way to just set a custom icon for all themes?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/packaging/attachments/20110215/c883e642/attachment.html 


More information about the packaging mailing list