From f097dbd0798d36f817b29f9881e1989f8864843d Mon Sep 17 00:00:00 2001 From: Sajay Date: Wed, 5 Jul 2023 14:45:27 +0530 Subject: [PATCH] Check for already exisiting desktop entry (#100) When st desktop entry already exists it throws error when running make --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f44cb30..dc0a906 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ install: st chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 tic -sx st.info mkdir -p $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch - cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch + test -f ${DESTDIR}${PREFIX}/share/applications/st.desktop || cp -n st.desktop $(DESTDIR)$(PREFIX)/share/applications # desktop-entry patch @echo Please see the README file regarding the terminfo entry of st. uninstall: