Commit 763d4ef9 authored by Paulius Zaleckas's avatar Paulius Zaleckas Committed by Peter Korsgaard
Browse files

libgtk2: Fix pixbuf loaders cache file generation



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: default avatarPaulius Zaleckas <paulius.zaleckas@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 2c37dbf7
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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)