This commit is contained in:
vinceliuice 2022-01-30 14:39:22 +08:00
parent f48339bc56
commit 380cafdae3
2 changed files with 6 additions and 10 deletions

View File

@ -311,12 +311,8 @@ signal_error() {
prompt -e "GNOME : ${GNOME_VERSION}" prompt -e "GNOME : ${GNOME_VERSION}"
prompt -e "REPO : ${repo_ver}\n" prompt -e "REPO : ${repo_ver}\n"
if has_command apt; then prompt -i "HINT: You can google or report to us the info above \n"
prompt -i "HINT: Try install depends to fix this: sudo apt install sassc libglib2.0-dev-bin libxml2-utils\n" prompt -i "https://github.com/vinceliuice/WhiteSur-gtk-theme/issues \n"
fi
prompt -i "HINT: You can google or report to us the info above\n"
prompt -i "https://github.com/vinceliuice/WhiteSur-gtk-theme/issues\n\n"
rm -rf "${WHITESUR_TMP_DIR}"; exit 1 rm -rf "${WHITESUR_TMP_DIR}"; exit 1
} }
@ -666,7 +662,7 @@ sudo() {
prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as root" prompt -w "Executing '$(echo "${@}" | cut -c -35 )...' as root"
if ! ${SUDO_BIN} -n true &> /dev/null; then if ! ${SUDO_BIN} -n true &> /dev/null; then
echo -e "${c_magenta} Authentication is required${c_default} ${c_green}(Please input your password):${c_default}" echo -e "\n ${c_magenta} Authentication is required${c_default} ${c_green}(Please input your password):${c_default} \n"
fi fi
if [[ -p /dev/stdin ]]; then if [[ -p /dev/stdin ]]; then

View File

@ -775,15 +775,15 @@ connect_snap() {
sudo snap install whitesur-gtk-theme sudo snap install whitesur-gtk-theme
for i in $(snap connections | grep gtk-common-themes | awk '{print $2}' | cut -f1 -d: | sort -u); do for i in $(snap connections | grep gtk-common-themes | awk '{print $2}' | cut -f1 -d: | sort -u); do
sudo snap connect "${i}:gtk-3-themes" "whitesur-gtk-theme:gtk-3-themes" sudo snap connect "${i}:gtk-3-themes" "whitesur-gtk-theme:gtk-3-themes"
sudo snap connect "${i}:icon-themes" "whitesur-gtk-theme:icon-themes" sudo snap connect "${i}:icon-themes" "whitesur-gtk-theme:icon-themes"
done done
} }
disconnect_snap() { disconnect_snap() {
for i in $(snap connections | grep gtk-common-themes | awk '{print $2}' | cut -f1 -d: | sort -u); do for i in $(snap connections | grep gtk-common-themes | awk '{print $2}' | cut -f1 -d: | sort -u); do
sudo snap disconnect "${i}:gtk-3-themes" "whitesur-gtk-theme:gtk-3-themes" sudo snap disconnect "${i}:gtk-3-themes" "whitesur-gtk-theme:gtk-3-themes"
sudo snap disconnect "${i}:icon-themes" "whitesur-gtk-theme:icon-themes" sudo snap disconnect "${i}:icon-themes" "whitesur-gtk-theme:icon-themes"
done done
} }