Advice on desktop icons
Michael Thomas
wart at kobold.org
Mon Jul 10 18:36:37 UTC 2006
Duncan Ferguson wrote:
> I am in the process of creating an RPM for a desktop application. I
> have found the section on desktop files in the packaging guidelines in
> the wiki, but it make no mention of icons.
>
> What is the best way to include icons within an rpm, and what sizes of
> icons should be used (i have seen mention of 16x16, 24x24 and 48x48, but
> how should they be named/installed within the rpm)?
I usually use 32x32 or 48x48 icons, but it's really your choice. And I
name them to match the package name, such as "freedoom.png". To install
it, you can use the following fragments:
Source1: freedoom.png
...
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
install -p -m 644 %{SOURCE1} \
$RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
--Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3820 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060710/5b5df99b/attachment.bin>
More information about the fedora-extras-list
mailing list