I've often seen a build skip the missing encoding and assume it is UTF-8, and rpmbuild will just happily build the SRPM. My question is how do we tell desktop-file-install to include a UTF-8 encoding ... what is the proper way to enter it?
For example, brokenapp.desktop needed an encoding specification:
desktop-file-install --vendor="" \
--add-category="Application" \
--add-category="X-MandrivaLinux-Multimedia-Audio" \
--dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT% {_datadir}/applications/brokenapp.desktopI'm sure the answer is simple but it has eluded me. Another question is adding or changing icons for the .desktop?
Thank you in advance for your reply.
Archie
I'll answer the easy question.

The icon should be a source. If you are replacing an icon with an icon created for use with PCLinuxOS, for example, the names should match. That is, if you're packaging appx, and its icon is named appx.png, the replacement icon will be named appx.png, also. Thus ---
Source: appx.tar.xz
Source1: appx.png
If you are using an icon with a different name, you must ensure that the .desktop file will be using it, rather than the original. Then ---
Icon=appx.png
becomes
Icon=PCappx.png
in appx.desktop.