2014-04-22 15:48:15 +00:00
|
|
|
findGdkPixbufLoaders() {
|
2014-02-27 19:37:28 +00:00
|
|
|
|
2015-06-14 13:59:52 +00:00
|
|
|
# choose the longest loaders.cache
|
|
|
|
local loadersCache="$1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
|
|
|
if [ -f "$loadersCache" ]; then
|
|
|
|
if [ -f "$GDK_PIXBUF_MODULE_FILE" ]; then
|
|
|
|
if [ $(cat "$loadersCache"|wc -l) -gt $(cat "$GDK_PIXBUF_MODULE_FILE"|wc -l) ]; then
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
|
2014-04-22 15:48:15 +00:00
|
|
|
fi
|
2014-02-27 19:37:28 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-04-22 15:48:15 +00:00
|
|
|
envHooks+=(findGdkPixbufLoaders)
|