libgtk2: Fix pixbuf loaders cache file generation
authorPaulius Zaleckas <paulius.zaleckas@gmail.com>
Sat, 30 Oct 2010 17:29:12 +0000 (20:29 +0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 31 Oct 2010 20:34:18 +0000 (21:34 +0100)
After libgtk was bumped to 2.22.0 default loacation of
pixbuf loaders cache changed.
Use --update-cache flag for gdk-pixbuf-query-loaders
which does waht we need.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libgtk2/S26libgtk2

index da5cc6ef7c029048ff44ae743e1969f96fcd8ca5..037746d9692039b7735e38bece85956cc4886484 100644 (file)
@@ -2,13 +2,12 @@
 #
 # run pgdk-pixbuf-query-loaders if needed
 
-FILE=/etc/gtk-2.0/gdk-pixbuf.loaders
+FILE=/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
 
 case "$1" in
     start|"")
        if [ ! -f "$FILE" ] ; then
-           mkdir -p /etc/gtk-2.0
-           /usr/bin/gdk-pixbuf-query-loaders > "$FILE"
+           /usr/bin/gdk-pixbuf-query-loaders --update-cache
        fi
        ;;
     stop)