[poky] [PATCH 03/10] sato-icon-theme: Explictly use "Sato" as gtk icon theme
Koen Kooi
koen at dominion.thruhere.net
Fri Mar 4 01:05:16 PST 2011
Op 4 mrt 2011, om 01:58 heeft Zhai, Edwin het volgende geschreven:
>
>
> Khem Raj wrote:
>>
>>
>> > --- a/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
>> > +++ b/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
>> > @@ -16,9 +16,12 @@ PACKAGE_ARCH = "all"
>> >
>> > EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping"
>> >
>> > +#explictly setting "Sato" as default icon theme to avoid icon missing due to
>> > +#tricky race condition
>> > pkg_postinst_${PN} () {
>> > if [ "x$D" != "x" ]; then
>> > exit 1
>> > fi
>> > gtk-update-icon-cache -q /usr/share/icons/Sato
>> > + echo 'gtk-icon-theme-name = "Sato"' >> /etc/gtk-2.0/gtkrc
>>
>> what would happen if you reinstalled this packge again I guess it
>> would keep appending right ?
>>
>
> I think postinst only got called via init script on 1st boot of the image, so it should be okay.
Postinst get called every time your install, reinstall or upgrade a package.
regards,
Koen
More information about the poky
mailing list