Le mercredi 14 décembre 2011, à 12:31 +0100, Guido Berhoerster a écrit :
* Stephan Kulow <coolo@suse.de> [2011-12-14 10:12]:
Hi,
Over the last couple of days I reworked update-desktop-files not to rely on an explicit %suse_update_desktop_file call. Instead Factory will have an additional brp script that trims the translations from .desktop files.
So: if you can live with an rpmlint warning on older distributions (I submited a rpmlint with the warning gone for factory), you can skip the macro now if you call it without options.
The most useful option of the macro should be the -n option now, as this one will mark the .desktop file with translate=false, which then also skips the trimming.
There is one problem with removing the buildrequires on update-desktop-files though: this package includes rpm provide triggers for mimehandler(), so don't remove the buildrequire if you have MimeType= in your .desktop file. Or we move that triggers to a package always installed in factory.
The macro also has some other very useful functions, it allows one to replace the name, generic name, or all categories without the need add and maintain patches.
It's doable with desktop-file-install now (in my git branch, will push to master soon and a release will also come).
I also find the ability to generate desktop files from scratch convenient and compact though it is less important.
I must admit I'm not a big fan of that, but this could be added to desktop-file-utils too... Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org