From 97cc1ce7cb2b66b3d1def7643d53dc6277fbed22 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Fri, 19 Apr 2024 19:52:36 +0800 Subject: [PATCH] Fixed #1046 Install failed on MATE Desktop --- shell/lib-core.sh | 3 +-- shell/lib-install.sh | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/shell/lib-core.sh b/shell/lib-core.sh index 285f35cf..607c2d61 100755 --- a/shell/lib-core.sh +++ b/shell/lib-core.sh @@ -26,7 +26,6 @@ MY_HOME=$(getent passwd "${MY_USERNAME}" | cut -d: -f6) if command -v gnome-shell &> /dev/null; then SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)" - LAST_VERSION="46-0" if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then GNOME_VERSION="46-0" elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then @@ -39,7 +38,7 @@ if command -v gnome-shell &> /dev/null; then GNOME_VERSION="3-28" fi else - GNOME_VERSION="none" + GNOME_VERSION="46-0" fi #----------Program options-------------# diff --git a/shell/lib-install.sh b/shell/lib-install.sh index de46de04..48f0abbb 100755 --- a/shell/lib-install.sh +++ b/shell/lib-install.sh @@ -381,10 +381,6 @@ install_shelly() { TARGET_DIR="${6}" fi - if [[ "${GNOME_VERSION}" == 'none' ]]; then - local GNOME_VERSION="${LAST_VERSION}" - fi - mkdir -p "${TARGET_DIR}" mkdir -p "${TARGET_DIR}/assets" cp -r "${THEME_SRC_DIR}/assets/gnome-shell/icons" "${TARGET_DIR}"