Skip to content

Commit

Permalink
install.sh: run update-desktop-database only once
Browse files Browse the repository at this point in the history
Don't run update-desktop-database after each installed desktop file but
only once after all files are installed.
  • Loading branch information
donald committed Nov 17, 2020
1 parent 4a0cf1c commit 42f274f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 42f274f

Please sign in to comment.