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

Rex Dieter rdieter at math.unl.edu
Tue Feb 15 19:39:38 UTC 2011


On 02/15/2011 01:11 PM, Erik Blankinship wrote:
> How do I create my spec file so that I my gui application can be
> launched by double clicking a filetype it is associated with via mimetype?
>
> This is what I've done so far:
> - I have updated my .desktop file so that it
> includes MimeType=application/x-supes-saved;

good.

> - 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'

-- Rex


More information about the packaging mailing list