Skip to content

Commit

Permalink
makefile: install .desktop file only if GUI_MODE is enabled
Browse files Browse the repository at this point in the history
I should stop releasing and then making another fix
  • Loading branch information
Toni500github committed Sep 1, 2024
1 parent c29a1e8 commit bc3769d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions cufetch.desktop
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit bc3769d

Please sign in to comment.