Refresh icon database.

This commit is contained in:
lemniskett 2020-12-29 18:44:40 +07:00
parent 22bde30d2f
commit adb2fcbe46
2 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Ever since I'm running some niche distros like Void, Solus, I had a problem find
- Sed - Sed
- Wget - Wget
- Tar - Tar
- Desktop-file-utils
- Zenity (Optional: for .desktop entry manager GUI) - Zenity (Optional: for .desktop entry manager GUI)
### Installing Archbox ### Installing Archbox
It's pretty easy, just run ```install.sh``` as root. It's pretty easy, just run ```install.sh``` as root.

View File

@ -38,13 +38,17 @@ EOF
case $1 in case $1 in
-i|--install) -i|--install)
checkdep update-desktop-database
install_desktop ${@:2} install_desktop ${@:2}
update-desktop-database
;; ;;
-r|--remove) -r|--remove)
checkdep update-desktop-database
selected_entry=${@:2} selected_entry=${@:2}
for i in $selected_entry; do for i in $selected_entry; do
rm ~/.local/share/applications/archbox/$i rm ~/.local/share/applications/archbox/$i
done done
update-desktop-database
;; ;;
-h|--help) -h|--help)
help_text help_text
@ -58,6 +62,7 @@ case $1 in
*) *)
checkdep zenity checkdep zenity
checkdep sed checkdep sed
checkdep update-desktop-database
action="$(zenity --list --radiolist --title 'Archbox Desktop Manager' \ action="$(zenity --list --radiolist --title 'Archbox Desktop Manager' \
--height=200 --width=450 --column 'Select' --column 'Action' \ --height=200 --width=450 --column 'Select' --column 'Action' \
--text 'What do you want to do?' \ --text 'What do you want to do?' \
@ -74,6 +79,7 @@ case $1 in
echo $selected_entry echo $selected_entry
[[ -z $selected_entry ]] && exit 1 [[ -z $selected_entry ]] && exit 1
install_desktop $selected_entry install_desktop $selected_entry
update-desktop-database
exit 0 exit 0
;; ;;
'Remove desktop entries') 'Remove desktop entries')
@ -90,6 +96,7 @@ case $1 in
for i in $selected_entry; do for i in $selected_entry; do
rm ~/.local/share/applications/archbox/$i rm ~/.local/share/applications/archbox/$i
done done
update-desktop-database
exit $? exit $?
;; ;;
esac esac