From 288a2932c087f62697a3087ccd097f5a75958e39 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 21 Oct 2020 14:06:53 +0200 Subject: [PATCH] install.sh: change desktopdir and add test if it exist --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9b0c8700..9180e33d 100755 --- a/install.sh +++ b/install.sh @@ -33,7 +33,7 @@ fi : ${crond_dir:=$sysconfdir/cron.d} : ${udev_helperdir:=$prefix/lib/udev} -: ${desktopdir:=$usr_prefix/share/applications} +: ${desktopdir:=/usr/local/package/share/applications} : ${INSTALL:=install -v} : ${INSTALL_PROGRAM:=$INSTALL} @@ -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} }