From kde-devel Mon Oct 22 08:27:23 2012 From: "Friedrich W. H. Kossebau" Date: Mon, 22 Oct 2012 08:27:23 +0000 To: kde-devel Subject: [SOLVED] Re: How to process/update "Mimetype=" entries in .desktop files on install? Message-Id: <3093071.Kcsb5JXvTl () klux ! site> X-MARC-Message: https://marc.info/?l=kde-devel&m=135089449913402 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 <<