From fb8a0c9ea9135f88649e8f219621edce8dbcc1d6 Mon Sep 17 00:00:00 2001 From: Daniel Junho Date: Tue, 16 May 2023 11:57:50 +0100 Subject: [PATCH] Linux: Check libfuse2 dependency in install script (#8079) --- Joplin_install_and_update.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index a0866067f..b374d74b3 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -114,6 +114,16 @@ elif [[ $ARCHITECTURE =~ .*i386.*|.*i686.* ]] ; then exit 1 fi +#----------------------------------------------------- +print "Checking dependencies..." +## Check if libfuse2 is present. +LIBFUSE=$(ldconfig -p | grep "libfuse.so.2" || echo '') +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" + exit 1 +fi + #----------------------------------------------------- # Download Joplin #-----------------------------------------------------