From adb2fcbe460e2d6b19d72f05aa432eb374d109ea Mon Sep 17 00:00:00 2001 From: lemniskett Date: Tue, 29 Dec 2020 18:44:40 +0700 Subject: [PATCH] Refresh icon database. --- README.md | 1 + archbox-desktop.bash | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index a9684ca..d8f5b66 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Ever since I'm running some niche distros like Void, Solus, I had a problem find - Sed - Wget - Tar +- Desktop-file-utils - Zenity (Optional: for .desktop entry manager GUI) ### Installing Archbox It's pretty easy, just run ```install.sh``` as root. diff --git a/archbox-desktop.bash b/archbox-desktop.bash index 75db991..da085dd 100755 --- a/archbox-desktop.bash +++ b/archbox-desktop.bash @@ -38,13 +38,17 @@ EOF case $1 in -i|--install) + checkdep update-desktop-database install_desktop ${@:2} + update-desktop-database ;; -r|--remove) + checkdep update-desktop-database selected_entry=${@:2} for i in $selected_entry; do rm ~/.local/share/applications/archbox/$i done + update-desktop-database ;; -h|--help) help_text @@ -58,6 +62,7 @@ case $1 in *) checkdep zenity checkdep sed + checkdep update-desktop-database action="$(zenity --list --radiolist --title 'Archbox Desktop Manager' \ --height=200 --width=450 --column 'Select' --column 'Action' \ --text 'What do you want to do?' \ @@ -74,6 +79,7 @@ case $1 in echo $selected_entry [[ -z $selected_entry ]] && exit 1 install_desktop $selected_entry + update-desktop-database exit 0 ;; 'Remove desktop entries') @@ -90,6 +96,7 @@ case $1 in for i in $selected_entry; do rm ~/.local/share/applications/archbox/$i done + update-desktop-database exit $? ;; esac