Skip to contentSkip to conversation

libgtk2: Fix pixbuf loaders cache file generation

PATCH New Paulius Zaleckas 2 participants 2 messages Oct 30, 2010 – Oct 31, 2010

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---

 package/libgtk2/S26libgtk2 |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
package/libgtk2/S26libgtk2 +2 -3
index da5cc6e..037746d 100644
@@ -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)
#1 lore raw

PATCH v2 1/1 libgtk2: Fix pixbuf loaders cache file generation

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Paulius" == Paulius Zaleckas <[email protected]> writes:

Paulius> After libgtk was bumped to 2.22.0 default loacation of Paulius> pixbuf loaders cache changed.
Paulius> Use --update-cache flag for gdk-pixbuf-query-loaders Paulius> which does waht we need.

Committed, thanks!

We should propbably rename / move this initscript to gdk-pixbuf instead though.

Signature · 1 line
Bye, Peter Korsgaard