Probably now fixed if preset.sh is used for thunar
This commit is contained in:
@@ -39,17 +39,26 @@ printf "${NOTE} Installing ${BLUE}Thunar${RESET} Packages...\n\n"
|
||||
printf "\n%.0s" {1..2}
|
||||
|
||||
# confirm if wanted to set as default
|
||||
read -n1 -rep "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault
|
||||
while true; do
|
||||
read -n1 -rep "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault
|
||||
case $thundefault 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"
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "Invalid input. Please enter 'y' or 'n'."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "$thundefault" == ^[Yy]$ ]]; then
|
||||
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." 2>&1 | tee -a "$LOG"
|
||||
else
|
||||
echo "${NOTE} you choose not to set Thunar as default file manager." 2>&1 | tee -a "$LOG"
|
||||
fi
|
||||
|
||||
printf "\n"
|
||||
printf "\n%.0s" {1..1}
|
||||
|
||||
# Check for existing configs and copy if does not exist
|
||||
for DIR1 in gtk-3.0 Thunar xfce4; do
|
||||
|
||||
Reference in New Issue
Block a user