Skip to content

Commit

Permalink
install.sh: change desktopdir and add test if it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Oct 21, 2020
1 parent 393846e commit d9ea8c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fi
: ${crond_dir:=$sysconfdir/cron.d}
: ${udev_helperdir:=$prefix/lib/udev}

: ${desktopdir:=$usr_prefix/share/applications}
: ${desktopdir:=${usr_prefix}/local/package/share/applications}

: ${INSTALL:=install -v}
: ${INSTALL_PROGRAM:=$INSTALL}
Expand Down Expand Up @@ -65,6 +65,7 @@ function install_if()

function install_desktop_file()
{
test -d ${desktopdir} || mkdir -p ${desktopdir}
install_if "$1" "$2" $INSTALL_DATA
update-desktop-database ${desktopdir}
}
Expand Down

0 comments on commit d9ea8c7

Please sign in to comment.