
usr/bin/gtk-query-immodules-2.0  > etc/gtk-2.0/gtk.immodules   # ueberfluessig, spaeter weg, sollte von gtk+2 installiert sein
usr/bin/gtk-query-immodules-3.0  > etc/gtk-3.0/gtk.immodules   # ueberfluessig, spaeter weg, sollte von gtk+2 installiert sein
usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
usr/bin/gdk-pixbuf-query-loaders > etc/gtk-3.0/gdk-pixbuf.loaders
usr/bin/gdk-pixbuf-query-loaders --update-cache >/dev/null 2>&1      
/usr/bin/gdk-pixbuf-query-loaders /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so > /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache    
#/usr/bin/gdk-pixbuf-query-loaders /usr/lib/gdk-pixbuf-3.0/3.0.0/loaders/*.so > /usr/lib/gdk-pixbuf-3.0/3.0.0/loaders.cache     # aktivieren sobald da

chroot . /usr/bin/update-gdk-pixbuf-loaders 1> /dev/null 2> /dev/null        


# nachfolgendes wohl nicht wichtig

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime &> /dev/null
fi

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database &> /dev/null
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor &> /dev/null
fi
	# Update the scrollkeeper database (Remove stale pieces)
	if [ -x usr/bin/scrollkeeper-update ]; then
		usr/bin/scrollkeeper-update > /dev/null 2>&1
	fi

#
( cd usr/share ; rm -rf gnome )
( cd usr/share ; ln -sf gtk-doc gnome )
( cd usr/lib ; rm -rf gdk-pixbuf-xlib )
( cd usr/lib ; ln -sf gdk-pixbuf-2.0/gdk-pixbuf-xlib gdk-pixbuf-xlib )
( cd usr/lib ; rm -rf libgdk_pixbuf.la )
( cd usr/lib ; ln -sf libgdk_pixbuf-2.0.la libgdk_pixbuf.la )
( cd usr/lib/gdk-pixbuf-2.0 ; rm -rf gdk-pixbuf-xlib )
( cd usr/lib/gdk-pixbuf-2.0 ; ln -sf .. gdk-pixbuf-xlib )
( cd usr/lib/gdk-pixbuf-2.0 ; rm -rf gdk-pixbuf )
( cd usr/lib/gdk-pixbuf-2.0 ; ln -sf .. gdk-pixbuf )
( cd usr/lib/gdk-pixbuf-2.0 ; rm -rf loaders )
( cd usr/lib/gdk-pixbuf-2.0 ; ln -sf 2.10.0/loaders loaders )
( cd usr/lib ; rm -rf libgdk_pixbuf-2.0.so )
( cd usr/lib ; ln -sf libgdk_pixbuf-2.0.so.0.2400.0 libgdk_pixbuf-2.0.so )
( cd usr/lib/gdk-pixbuf-3.0 ; rm -rf gdk-pixbuf-xlib )
( cd usr/lib/gdk-pixbuf-3.0 ; ln -sf .. gdk-pixbuf-xlib )
( cd usr/lib/gdk-pixbuf-3.0 ; rm -rf gdk-pixbuf )
( cd usr/lib/gdk-pixbuf-3.0 ; ln -sf .. gdk-pixbuf )
( cd usr/lib/gdk-pixbuf-3.0 ; rm -rf loaders )
( cd usr/lib/gdk-pixbuf-3.0 ; ln -sf 3.0.0/loaders loaders )
( cd usr/lib ; rm -rf libgdk_pixbuf_xlib-2.0.so )
( cd usr/lib ; ln -sf libgdk_pixbuf_xlib-2.0.so.0.2400.0 libgdk_pixbuf_xlib-2.0.so )
( cd usr/lib ; rm -rf gdk-pixbuf )
( cd usr/lib ; ln -sf gdk-pixbuf-2.0/gdk-pixbuf gdk-pixbuf )
( cd usr/lib ; rm -rf libgdk_pixbuf-2.0.so.0 )
( cd usr/lib ; ln -sf libgdk_pixbuf-2.0.so.0.2400.0 libgdk_pixbuf-2.0.so.0 )
( cd usr/lib ; rm -rf libgdk_pixbuf_xlib-2.0.so.0 )
( cd usr/lib ; ln -sf libgdk_pixbuf_xlib-2.0.so.0.2400.0 libgdk_pixbuf_xlib-2.0.so.0 )
( cd usr/lib/gtk-3.0/3.0.0 ; rm -rf loaders )
( cd usr/lib/gtk-3.0/3.0.0 ; ln -sf ../../gdk-pixbuf-2.0/2.10.0/loaders loaders )
( cd usr/lib ; rm -rf gdk-pixbuf.loaders )
( cd usr/lib ; ln -sf /etc/gtk-2.0/gdk-pixbuf.loaders gdk-pixbuf.loaders )
( cd usr/lib ; rm -rf 3.0.0 )
( cd usr/lib ; ln -sf gdk-pixbuf-3.0/3.0.0 3.0.0 )
( cd usr/lib ; rm -rf libgdk_pixbuf.so.2.0.0 )
( cd usr/lib ; ln -sf libgdk_pixbuf-2.0.so libgdk_pixbuf.so.2.0.0 )
( cd usr/lib ; rm -rf gdk-pixbuf-1.0 )
( cd usr/lib ; ln -sf gdk-pixbuf-2.0 gdk-pixbuf-1.0 )
( cd usr/lib ; rm -rf 2.10.0 )
( cd usr/lib ; ln -sf gdk-pixbuf-2.0/2.10.0 2.10.0 )
( cd usr/lib/gtk-2.0/2.10.0 ; rm -rf loaders )
( cd usr/lib/gtk-2.0/2.10.0 ; ln -sf ../../gdk-pixbuf-2.0/2.10.0/loaders loaders )
( cd usr/include ; rm -rf gdk-pixbuf-xlib )
( cd usr/include ; ln -sf gdk-pixbuf-2.0/gdk-pixbuf-xlib gdk-pixbuf-xlib )
( cd usr/include ; rm -rf gdk-pixbuf )
( cd usr/include ; ln -sf gdk-pixbuf-2.0/gdk-pixbuf gdk-pixbuf )
( cd usr/include ; rm -rf gdk-pixbuf-1.0 )
( cd usr/include ; ln -sf gdk-pixbuf-2.0 gdk-pixbuf-1.0 )
