diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-12-31 09:35:15 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-12-31 09:35:15 +0000 |
commit | ccb02b009b1b16ce12d657b417650453fb261c5d (patch) | |
tree | 70396c569538b5f3409d8ff88d53e5cf664f32e3 /package/libgtk2/S26libgtk2 | |
parent | e528d99d9667e999438abc3817d8bf417cdfb130 (diff) |
libgtk2: add init script to create /etc/gtk-2.0/gdk-pixbuf.loaders
It would be nicer to do this at compile time, but then we would need to
compile libgtk2 for the host as well.
Diffstat (limited to 'package/libgtk2/S26libgtk2')
-rw-r--r-- | package/libgtk2/S26libgtk2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/package/libgtk2/S26libgtk2 b/package/libgtk2/S26libgtk2 new file mode 100644 index 000000000..48e996d1e --- /dev/null +++ b/package/libgtk2/S26libgtk2 @@ -0,0 +1,19 @@ +#!/bin/sh +# +# run pgdk-pixbuf-query-loaders if needed + +FILE=/etc/gtk-2.0/gdk-pixbuf.loaders + +case "$1" in + start|"") + if [ ! -f "$FILE" ] ; then + /usr/bin/gdk-pixbuf-query-loaders > "$FILE" + fi + ;; + stop) + ;; + *) + echo "Usage: $0 {start|stop}" >&2 + exit 1 + ;; +esac |