added 'cd ${HERE}' to let run from the desktop menu and find all assets
removed double LIBS=$($(...)) as it try to execute shared objects
added '-type f' to find, to avoid find links and directory too
added 'so*' to libbabl and libmypaint to avoid find two more unneeded files
removed 'for LIBS in ${HERE}/usr/lib/x86_64-linux-gnu/; do'
as overwrite LIBS and
'${HERE}/usr/lib/x86_64-linux-gnu/' is not a list so execute loop only once, do not need a cycle
use sed in 'export LD_PRELOAD' instead of for loop
removed trailer '/' in PATH and LD_LIBRARY_PATH definitions
removed trailer space in EXEC
use absolute path to run binary to avoid find native distro binary
added commented debug echo
removed the two lines:
function1="'^Exec=.*'"
function2="'s|%.||g'"
using escape for single quote inside single quote: ' => '\''
List of modifications:
' => '\''