2014-04-22 17:48:15 +02:00
|
|
|
findGdkPixbufLoaders() {
|
2014-02-27 20:37:28 +01:00
|
|
|
|
2015-06-14 15:59:52 +02:00
|
|
|
# choose the longest loaders.cache
|
|
|
|
local loadersCache="$1/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
2019-11-07 21:05:23 +01:00
|
|
|
if [[ -f "$loadersCache" ]]; then
|
|
|
|
if [[ -f "${GDK_PIXBUF_MODULE_FILE-}" ]]; then
|
2019-12-01 15:33:51 +01:00
|
|
|
if (( "$(cat "$loadersCache" | wc -l)" > "$(cat "$GDK_PIXBUF_MODULE_FILE" | wc -l)" )); then
|
2015-06-14 15:59:52 +02:00
|
|
|
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="$loadersCache"
|
2014-04-22 17:48:15 +02:00
|
|
|
fi
|
2014-02-27 20:37:28 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2020-02-28 20:12:16 +01:00
|
|
|
addEnvHooks "$targetOffset" findGdkPixbufLoaders
|