This is it..
I can feel it... danggit
This commit is contained in:
@@ -38,22 +38,29 @@ printf "${NOTE} Installing ${SKY_BLUE}Thunar${RESET} Packages...\n\n"
|
||||
|
||||
printf "\n%.0s" {1..2}
|
||||
|
||||
# confirm if wanted to set as default
|
||||
if [[ $USE_PRESET = [Yy] ]]; then
|
||||
source ./preset.sh
|
||||
fi
|
||||
|
||||
# Confirm if wanted to set as default
|
||||
while true; do
|
||||
read -n 1 -r -p "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n)" thundefault
|
||||
case $thundefault in
|
||||
[Yy])
|
||||
if [[ -z $thunar_choice ]]; then
|
||||
read -p "${CAT} want to set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thunar_choice
|
||||
fi
|
||||
case "$thunar_choice" in
|
||||
[Yy]*)
|
||||
xdg-mime default thunar.desktop inode/directory
|
||||
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
|
||||
echo "${OK} Thunar has been set as the default file manager." | tee -a "$LOG"
|
||||
break
|
||||
;;
|
||||
[Nn])
|
||||
echo "${NOTE} you chose not to set Thunar as the default file manager." | tee -a "$LOG"
|
||||
[Nn]*)
|
||||
echo "${NOTE} You chose not to set ${MAGENTA}Thunar${RESET} as the default file manager." | tee -a "$LOG"
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "Invalid input. Please enter 'y' or 'n'."
|
||||
echo "${WARN} Invalid input. Please enter 'y' or 'n'."
|
||||
unset thunar_choice
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
@@ -34,7 +34,7 @@ dots="Y"
|
||||
### Would you like to blacklist nouveau? (y/n)
|
||||
blacklist_nouveau="Y"
|
||||
### Do you want to set Thunar as the default file manager? (y/n): "
|
||||
thundefault="Y"
|
||||
thunar_choice="Y"
|
||||
### OPTIONAL - Would you like to install SDDM themes? (y/n)
|
||||
install_sddm_theme="Y"
|
||||
### " This script will add your user to the 'input' group."
|
||||
|
||||
Reference in New Issue
Block a user