On 9/6/06, David Jensen <[EMAIL PROTECTED]> wrote:

Attached a general cure for gnome ills.  Most of it is likely unneeded.
I don't remember  who first posted it.

Excellent, David! We should put this on the Wiki. I have a couple
others I've noticed from installing into DESTDIRs.

# This is done in the gtk build
gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules

# A handful of packages play with the database. Updates file mime.cache.
update-mime-database /usr/share/mime

# This one will definitely help. Strace a random GNOME
# application and you will see it looking for this cache over and over
gtk-update-icon-cache /usr/share/icons/hicolor

# Here's another way to install schemas. This actually mimics what happens
# in a Makefile. This occurs in my evolution script.
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
SCHEMAS="evolution-mail-2.6.schemas \
       apps_evolution_shell-2.6.schemas \
       apps_evolution_calendar-2.6.schemas \
       apps_evolution_addressbook-2.6.schemas \
       apps-evolution-mail-prompts-checkdefault-2.6.schemas"
for S in ${SCHEMAS}; do
       [ -f /etc/gconf/schemas/${S} ] || continue
       gconftool-2 --makefile-install-rule /etc/gconf/schemas/${S} >/dev/null
done

# Here's exactly what runs at the end of my gnome-games
# installation (ignore the report stuff)
report "Updating desktop database cache"
update-desktop-database /usr/share/applications

report "Updating scrollkeeper database"
scrollkeeper-update

report "Registering GConf schemas"
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
SCHEMAS="libgnomegames.schemas \
       aisleriot.schemas \
       blackjack.schemas \
       gnometris.schemas \
       gnect.schemas \
       gnomine.schemas \
       same-gnome.schemas \
       mahjongg.schemas \
       gtali.schemas \
       gataxx.schemas \
       gnotravex.schemas \
       gnotski.schemas \
       glines.schemas \
       iagno.schemas \
       gnobots2.schemas \
       gnibbles.schemas"
for S in ${SCHEMAS}; do
       [ -f /etc/gconf/schemas/${S} ] || continue
       gconftool-2 --makefile-install-rule /etc/gconf/schemas/${S} >/dev/null
done

HTH

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to