From f49f8bebdd53eac3a62dfff284e11474be978918 Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Thu, 14 Nov 2019 21:46:28 -0800 Subject: [PATCH] Adds desktop entry and icon, plus build target for makefile --- Makefile | 11 ++++++++++- bombadillo.desktop | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d8d2c33..fedcd27 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ build: ${GOCMD} build ${LDFLAGS} -o ${BINARY} .PHONY: install -install: install-bin install-man clean +install: install-bin install-man install-desktop clean .PHONY: install-man install-man: bombadillo.1 @@ -34,6 +34,13 @@ install-man: bombadillo.1 install -d ${DESTDIR}${MAN1DIR} install -m 0644 ./bombadillo.1.gz ${DESTDIR}${MAN1DIR} +.PHONY: install-desktop +install-desktop: + install -d ${DESTDIR}${DATAROOTDIR}/applications + install -m 0644 ./bombadillo.desktop ${DESTDIR}${DATAROOTDIR}/applications + install -d ${DESTDIR}${DATAROOTDIR}/pixmaps + install -m 0644 ./bombadillo-icon.png ${DESTDIR}${DATAROOTDIR}/pixmaps + .PHONY: install-bin install-bin: build install -d ${DESTDIR}${BINDIR} @@ -48,6 +55,8 @@ clean: uninstall: clean rm -f ${DESTDIR}${MAN1DIR}/bombadillo.1.gz rm -f ${DESTDIR}${BINDIR}/${BINARY} + rm -f ${DESTDIR}${DATAROOTDIR}/applications/bombadillo.desktop + rm -f ${DESTDIR}${DATAROOTDIR}/pixmaps/bombadillo-icon.png .PHONY: test test: clean build diff --git a/bombadillo.desktop b/bombadillo.desktop index 1f4dd7a..6300fe7 100644 --- a/bombadillo.desktop +++ b/bombadillo.desktop @@ -1,6 +1,9 @@ [Desktop Entry] -Name=Bombadillo Type=Application +Name=Bombadillo +GenericName=Non-Web Browser +Comment=View gopher, gemini, finger, telnet, http(s) sites over the internet Terminal=true +Categories=Network;Application;WebBrowser;ConsoleOnly; Exec=bombadillo Icon=bombadillo-icon