From 1ca4762d1cf1fd04378e5cfe5d37c6f89dada5f4 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 20 Sep 2024 20:05:46 +0900 Subject: [PATCH] User will be ask if they want to set Thunar as default file manager if they decided to install it --- CHANGELOGS.md | 3 +++ install-scripts/thunar.sh | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index ac4652e..b46e89a 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -1,5 +1,8 @@ ## Changelogs +## 20 Sep 2024 +- User will be ask if they want to set Thunar as default file manager if they decided to install it + ## 19 Sep 2024 - updated xdph installation since it is now in Debian Repo - Added fastfetch on tty. However, will be disabled if user decided to install pokemon colorscripts diff --git a/install-scripts/thunar.sh b/install-scripts/thunar.sh index 129f9a9..ca0fc53 100755 --- a/install-scripts/thunar.sh +++ b/install-scripts/thunar.sh @@ -32,18 +32,21 @@ printf "${NOTE} Installing Thunar Packages...\n" done printf "\n%.0s" {1..2} -# Ask the user if they want to use Thunar as the default file manager -read -p "${CAT} Do you want to set Thunar as the default file manager? (y/n): " choice -if [[ "$choice" == [Yy] ]]; then +# Ask the user if they want to use Thunar as the default file manager +read -p "${CAT} Do you want to set Thunar as the default file manager? (y/n): " thunar_default + +if [[ "$thunar_default" == [Yy] ]]; then # Setting Thunar as the default file manager 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 file manager." 2>&1 | tee -a "$LOG" + echo "${NOTE} you choose not to set Thunar as default file manager." 2>&1 | tee -a "$LOG" fi +printf "\n" + # Check for existing configs and copy if does not exist for DIR1 in gtk-3.0 Thunar xfce4; do DIRPATH=~/.config/$DIR1