This happens with no .ini file at all (factory reset) with xnview.sh pointing to system libs: strace log attached (xnviewmp_20180403_1951_factory_start.strace)
Same result when starting again a second time: strace log attached (xnviewmp_20180403_1952_second_start.strace)
Same result with the default xnview.sh pointing to the bundled libs (which causes the usual font problem) : strace log attached (xnviewmp_20180403_2010_third_start.strace).
I don't understand why XnViewMP generates so many system calls on startup. Either way, it causes a much longer startup time, even when launching by opening a file directly.
Reminder: the font issue on Arch Linux requires to point to system libs instead of the bundled libs, otherwise, lots of errors occur (xnviewmp_20180403_2026_fourth_start.log).
That's why XnViewMP stats the entire /usr/lib/ directories. Still, I think it's not very well optimized and should only load the libs it needs (does it really need to stat the entire directory trees?).
Code: Select all
#!/bin/sh dirname=`readlink -e "$0"` dirname=`dirname "$dirname"` export LD_LIBRARY_PATH="/usr/lib:$dirname/Plugins" export QT_PLUGIN_PATH="/usr/lib:$dirname/lib:/usr/lib/qt/plugins" export QT_QPA_PLATFORM_PLUGIN_PATH="$dirname/lib/platforms/" QT_QPA_PLATFORMTHEME=qt5ct exec "$dirname/XnView" "$@"