From 4411017f86a54c4c8007eaf2458a85dc0510c624 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 4 Nov 2010 09:18:57 +0100 Subject: gdk-pixbuf/libgtk2: move gdk-pixbuf loader cache setup script Signed-off-by: Lionel Landwerlin Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/gdk-pixbuf/S26gdk-pixbuf | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/gdk-pixbuf/S26gdk-pixbuf (limited to 'package/gdk-pixbuf/S26gdk-pixbuf') diff --git a/package/gdk-pixbuf/S26gdk-pixbuf b/package/gdk-pixbuf/S26gdk-pixbuf new file mode 100644 index 000000000..82b7944e7 --- /dev/null +++ b/package/gdk-pixbuf/S26gdk-pixbuf @@ -0,0 +1,19 @@ +#!/bin/sh +# +# run gdk-pixbuf-query-loaders if needed + +FILE=/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache + +case "$1" in + start|"") + if [ ! -f "$FILE" ] ; then + /usr/bin/gdk-pixbuf-query-loaders --update-cache + fi + ;; + stop) + ;; + *) + echo "Usage: $0 {start|stop}" >&2 + exit 1 + ;; +esac -- cgit v1.2.3