https://bugzilla.redhat.com/show_bug.cgi?id=1450633
--- Comment #28 from Mukundan Ragavan nonamedotc@gmail.com --- (In reply to Michael Schwendt from comment #27)
%posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : desktop-file-validate %{_datadir}/applications/keepassxc.desktop &> /dev/null || :
That desktop-file-validate call isn't acceptable like that. You are supposed to validate .desktop files once when building the binary package. Not in %posttrans and then ignoring output and any errors.
Well, the spec file uses desktop-file-install in %install. Desktop-file-validate is not necessary here at all since -file-install is already used.
If desktop-file-validate is the only one used, then, of course, it should be in %install.
From the guidelines,
... one MUST run desktop-file-install (in %install) OR desktop-file-validate (in %check or %install) ...