From b8c941d2da1835fdee3108442e482bf51ab9f9e6 Mon Sep 17 00:00:00 2001 From: geant44 <32418208+geant44@users.noreply.github.com> Date: Mon, 6 Sep 2021 03:53:24 +0800 Subject: [PATCH] Desktop: Linux: Add Centos 7 for no sandbox (#5401) Co-authored-by: Further --- Joplin_install_and_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Joplin_install_and_update.sh b/Joplin_install_and_update.sh index ce7cbe299..e928adede 100755 --- a/Joplin_install_and_update.sh +++ b/Joplin_install_and_update.sh @@ -180,11 +180,12 @@ SANDBOXPARAM="" if command -v lsb_release &> /dev/null; then DISTVER=$(lsb_release -is) && DISTVER=$DISTVER$(lsb_release -rs) DISTCODENAME=$(lsb_release -cs) + DISTMAJOR=$(lsb_release -rs|cut -d. -f1) #----------------------------------------------------- # Check for "The SUID sandbox helper binary was found, but is not configured correctly" problem. # It is present in Debian 1X. A (temporary) patch will be applied at .desktop file # Linux Mint 4 Debbie is based on Debian 10 and requires the same param handling. - if [[ $DISTVER =~ Debian1. ]] || [ "$DISTVER" = "Linuxmint4" ] && [ "$DISTCODENAME" = "debbie" ] + if [[ $DISTVER =~ Debian1. ]] || [ "$DISTVER" = "Linuxmint4" ] && [ "$DISTCODENAME" = "debbie" ] || [ "$DISTVER" = "CentOS" ] && [[ "$DISTMAJOR" =~ 6|7 ]] then SANDBOXPARAM=" --no-sandbox" fi