~sircmpwn/aerc

Add aerc.desktop v1 PROPOSED

Davide Masserut: 1
 Add aerc.desktop

 2 files changed, 15 insertions(+), 0 deletions(-)
Why?
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/10676/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] Add aerc.desktop Export this patch

---

 Makefile     |  4 ++++
 aerc.desktop | 11 +++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 aerc.desktop

diff --git a/Makefile b/Makefile
index 3f06c4d..7f2f9e0 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ _INSTDIR=$(DESTDIR)$(PREFIX)
BINDIR?=$(_INSTDIR)/bin
SHAREDIR?=$(_INSTDIR)/share/aerc
MANDIR?=$(_INSTDIR)/share/man
DESKTOPDIR?=$(_INSTDIR)/share/applications
GO?=go
GOFLAGS?=

@@ -79,6 +80,7 @@ install: all
	install -m755 filters/plaintext $(SHAREDIR)/filters/plaintext
	install -m644 templates/quoted_reply $(SHAREDIR)/templates/quoted_reply
	install -m644 templates/forward_as_body $(SHAREDIR)/templates/forward_as_body
	install -m644 aerc.desktop $(DESKTOPDIR)/aerc.desktop

RMDIR_IF_EMPTY:=sh -c '\
if test -d $$0 && ! ls -1qA $$0 | grep -q . ; then \
@@ -98,11 +100,13 @@ uninstall:
	$(RM) $(MANDIR)/man7/aerc-tutorial.7
	$(RM) $(MANDIR)/man7/aerc-templates.7
	$(RM) -r $(SHAREDIR)
	$(RM) $(DESKTOPDIR)/aerc.desktop
	${RMDIR_IF_EMPTY} $(BINDIR)
	$(RMDIR_IF_EMPTY) $(MANDIR)/man1
	$(RMDIR_IF_EMPTY) $(MANDIR)/man5
	$(RMDIR_IF_EMPTY) $(MANDIR)/man7
	$(RMDIR_IF_EMPTY) $(MANDIR)
	$(RMDIR_IF_EMPTY) $(DESKTOPDIR)

.DEFAULT_GOAL := all

diff --git a/aerc.desktop b/aerc.desktop
new file mode 100644
index 0000000..d25c14a
--- /dev/null
+++ b/aerc.desktop
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=aerc
GenericName=Email Client
Comment=A pretty good email client
Exec=aerc %u
MimeType=x-scheme-handler/mailto;
MimeType=message/rfc822;x-scheme-handler/mailto;application/x-xpinstall;
Icon=emblem-mail
Terminal=true
Type=Application
Categories=Network;Email;
--
2.26.2
Sorry, no thanks.