diff --git a/Makefile b/Makefile index cc97f81..2e2c8a7 100644 --- a/Makefile +++ b/Makefile @@ -84,8 +84,10 @@ install: $(TARGET) sed -e "s/@VERSION@/$(VERSION)/g" -e "s/@BRANCH@/$(BRANCH)/g" < cufetch.1 > $(DESTDIR)$(MANPREFIX)/man1/cufetch.1 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/cufetch.1 cd assets/ && find ascii/ -type f -exec install -Dm 644 "{}" "$(DESTDIR)$(PREFIX)/share/customfetch/{}" \; +ifeq ($(GUI_MODE), 1) mkdir -p $(DESTDIR)$(APPPREFIX) cp -f cufetch.desktop $(DESTDIR)$(APPPREFIX) +endif uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET) diff --git a/cufetch.desktop b/cufetch.desktop index 52dc30b..5bbc239 100755 --- a/cufetch.desktop +++ b/cufetch.desktop @@ -1,9 +1,7 @@ -#!/usr/bin/env xdg-open [Desktop Entry] Name=Customfetch Comment=Highly customizable and fast fetch program Type=Application -#Path=/home/toni/stupid_projects/customfetch/ Exec=cufetch --gui Terminal=false Categories=Viewer;GTK;