Fixed gnome-shell 46 issues

This commit is contained in:
vinceliuice
2024-03-29 01:49:55 +08:00
parent b2a03d87da
commit 6d52018486
12 changed files with 497 additions and 51 deletions

View File

@@ -26,7 +26,9 @@ 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)"
if [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
GNOME_VERSION="46-0"
elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
GNOME_VERSION="44-0"
elif [[ "${SHELL_VERSION:-}" -ge "42" ]]; then
GNOME_VERSION="42-0"