Re: Advice on desktop icons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux