diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index b374d74b3..2d370b1ff 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -117,7 +117,11 @@ fi #----------------------------------------------------- print "Checking dependencies..." ## Check if libfuse2 is present. -LIBFUSE=$(ldconfig -p | grep "libfuse.so.2" || echo '') +if [[ $(command -v ldconfig) ]]; then + LIBFUSE=$(ldconfig -p | grep "libfuse.so.2" || echo '') +else + LIBFUSE=$(find /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib -name "libfuse.so.2" 2>/dev/null | grep "libfuse.so.2" || echo '') +fi if [[ $LIBFUSE == "" ]] ; then print "${COLOR_RED}Error: Can't get libfuse2 on system, please install libfuse2${COLOR_RESET}" print "See https://joplinapp.org/faq/#desktop-application-will-not-launch-on-linux and https://github.com/AppImage/AppImageKit/wiki/FUSE for more information"