mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
User will be ask if they want to set Thunar as default file manager if they decided to install it
This commit is contained in:
parent
013fcb35ad
commit
1ca4762d1c
@ -1,5 +1,8 @@
|
|||||||
## Changelogs
|
## 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
|
## 19 Sep 2024
|
||||||
- updated xdph installation since it is now in Debian Repo
|
- 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
|
- Added fastfetch on tty. However, will be disabled if user decided to install pokemon colorscripts
|
||||||
|
|||||||
@ -32,18 +32,21 @@ printf "${NOTE} Installing Thunar Packages...\n"
|
|||||||
done
|
done
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
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
|
# Setting Thunar as the default file manager
|
||||||
xdg-mime default thunar.desktop inode/directory
|
xdg-mime default thunar.desktop inode/directory
|
||||||
xdg-mime default thunar.desktop application/x-wayland-gnome-saved-search
|
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"
|
echo "${OK} Thunar has been set as the default file manager." 2>&1 | tee -a "$LOG"
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
# Check for existing configs and copy if does not exist
|
# Check for existing configs and copy if does not exist
|
||||||
for DIR1 in gtk-3.0 Thunar xfce4; do
|
for DIR1 in gtk-3.0 Thunar xfce4; do
|
||||||
DIRPATH=~/.config/$DIR1
|
DIRPATH=~/.config/$DIR1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user