046f091e0d
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
18 lines
464 B
Bash
18 lines
464 B
Bash
findGdkPixbufLoaders() {
|
|
|
|
# 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"
|
|
fi
|
|
fi
|
|
|
|
}
|
|
|
|
addEnvHooks "$hostOffset" findGdkPixbufLoaders
|