From 42f274f7824179cd2758766892dc679faaa23786 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Tue, 17 Nov 2020 15:31:58 +0100 Subject: [PATCH] install.sh: run update-desktop-database only once Don't run update-desktop-database after each installed desktop file but only once after all files are installed. --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index dcef0277..b969a65f 100755 --- a/install.sh +++ b/install.sh @@ -76,8 +76,6 @@ function install_if() function install_desktop_file() { install_if "$1" "$2" $INSTALL_DATA - update-desktop-database ${desktopdir} - register_installed_file "$desktopdir/mimeinfo.cache" } function install_exec() @@ -107,6 +105,9 @@ function install_symlink() function postinstall() { + update-desktop-database ${desktopdir} + register_installed_file "$desktopdir/mimeinfo.cache" + pkg="mxtools-0.0-0"; mkdir -p "$DESTDIR$usr_prefix/share/bee/$pkg" for f in "${INSTALLED_FILES[@]}"; do