[Mageia-dev] pixmap

jcc colette.jc at orange.fr
Wed Dec 14 21:42:54 CET 2011


On 14/12/2011 09:40, Guillaume Rousse wrote:
> Le 13/12/2011 23:27, jcc a écrit :
>> Hello,
>>
>> In a spec file, to install icons, if you copy the image in xpm format in
>> /usr/share/pixmap how do you update the image?
>> I search a command like %{_bindir}/gtk-update-icon-cache -q
>> %{_datadir}/icons/hicolor; but for a pixmap image.
> This update the gtk image *cache*, for gtk apps, not the image itself. 
> Where are those xpm icons used, and are you trying to update exactly ?
>
I have a problem with the icon of the application.

First I tried to save the icon image in pixmap directory but no icon 
appears on the desktop menu bar.

Then I replaced with these instructions and still the same problem.

mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor
convert axiomicon.png  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/axiom.png


even with the usual instruction update, it doesn't work:


%post

#update icon cache
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi
update-desktop-database &> /dev/null || :

%postun
# update icon cache
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor;
fi
update-desktop-database &> /dev/null || :

If you have another idea ...



More information about the Mageia-dev mailing list