From 695081332b1e8acb2417c8b068f3445e76eb03d9 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 3 Feb 2025 02:22:57 +0900 Subject: [PATCH] I think I found the fix on the Thunar making default when use preset.sh --- install-scripts/thunar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-scripts/thunar.sh b/install-scripts/thunar.sh index 12e40b9..033f735 100755 --- a/install-scripts/thunar.sh +++ b/install-scripts/thunar.sh @@ -39,9 +39,9 @@ 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} Do you want to set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault +read -n1 -rep "${CAT} set ${MAGENTA}Thunar${RESET} as the default file manager? (y/n): " thundefault -if [[ "$thundefault" == [Yy] ]]; then +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"