From d9ea8c7fd02b44c6caf03891513e3f73dc832308 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 9b0c870..8632a44 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_prefix}/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} }