Skip to content

Commit bc3769d

Browse files
committed
makefile: install .desktop file only if GUI_MODE is enabled
I should stop releasing and then making another fix
1 parent c29a1e8 commit bc3769d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ install: $(TARGET)
8484
sed -e "s/@VERSION@/$(VERSION)/g" -e "s/@BRANCH@/$(BRANCH)/g" < cufetch.1 > $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
8585
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/cufetch.1
8686
cd assets/ && find ascii/ -type f -exec install -Dm 644 "{}" "$(DESTDIR)$(PREFIX)/share/customfetch/{}" \;
87+
ifeq ($(GUI_MODE), 1)
8788
mkdir -p $(DESTDIR)$(APPPREFIX)
8889
cp -f cufetch.desktop $(DESTDIR)$(APPPREFIX)
90+
endif
8991

9092
uninstall:
9193
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)

cufetch.desktop

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
#!/usr/bin/env xdg-open
21
[Desktop Entry]
32
Name=Customfetch
43
Comment=Highly customizable and fast fetch program
54
Type=Application
6-
#Path=/home/toni/stupid_projects/customfetch/
75
Exec=cufetch --gui
86
Terminal=false
97
Categories=Viewer;GTK;

0 commit comments

Comments
 (0)