[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [SOLVED] Re: How to process/update "Mimetype=" entries in .desktop files on install?
From:       "Friedrich W. H. Kossebau" <kossebau () kde ! org>
Date:       2012-10-22 8:27:23
Message-ID: 3093071.Kcsb5JXvTl () klux ! site
[Download RAW message or body]

Am Sonntag, 21. Oktober 2012, 18:49:04 schrieb Albert Astals Cid:
> El Diumenge, 21 d'octubre de 2012, a les 18:15:49, Friedrich W. H. Kossebau
> va
> escriure:
> > Hi,
> > 
> > (follow-ups please only to kde-devel)
> > 
> > I am looking for a way to deal with the issue that the list of supported
> > mimetypes for some programs depends on the installed i/o plugins. E,g,
> > Marble and most Calligra programs have this problem.
> > 
> > Simply hardcoding all possibly supported mimetypes only leaves bad
> > impressions if a program is started for a file after e.g. a click on the
> > file in the file manager, but then gives an error message after starting
> > that it cannot read the file.
> > 
> > It is not only about the i/o plugins created at build time. But some
> > distributions also tend to put single i/o plugins in different packages,
> > so
> > just updating the "Mimetype=" entry in the .desktop file on build-time (by
> > generating another .desktop file) before it is installed will not work for
> > these.
> > 
> > So how can this problem be solved?
> 
> Do what okular does (i.e. one desktop per plugin)

Thanks, Albert. Works also at least for Marble (not yet commited, but 
preparing review request right now, then going to apply solution for Calligra 
as well).

Cheers
Friedrich

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic