~sircmpwn/aerc

added desktop entry v4 PROPOSED

Moritz Poldrack: 1
 added desktop entry

 2 files changed, 28 insertions(+), 3 deletions(-)
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/23739/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH v4] added desktop entry Export this patch

---
added desktopfile to uninstall target as suggested in v3

 Makefile     | 10 +++++++---
 aerc.desktop | 21 +++++++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)
 create mode 100644 aerc.desktop

diff --git a/Makefile b/Makefile
index 661acef..f64d4ea 100644
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,11 @@ endif

VPATH=doc
PREFIX?=/usr/local
DATAROOTDIR?=$(PREFIX)/share
BINDIR?=$(PREFIX)/bin
SHAREDIR?=$(PREFIX)/share/aerc
MANDIR?=$(PREFIX)/share/man
SHAREDIR?=$(DATAROOTDIR)/aerc
MANDIR?=$(DATAROOTDIR)/man
DESKTOPDIR?=$(DATAROOTDIR)/applications
GO?=go
GOFLAGS?=

@@ -69,7 +71,7 @@ clean:

install: all
	mkdir -m755 -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man7 \
		$(DESTDIR)$(SHAREDIR) $(DESTDIR)$(SHAREDIR)/filters $(DESTDIR)$(SHAREDIR)/templates $(DESTDIR)$(SHAREDIR)/stylesets
		$(DESTDIR)$(SHAREDIR) $(DESTDIR)$(SHAREDIR)/filters $(DESTDIR)$(SHAREDIR)/templates $(DESTDIR)$(SHAREDIR)/stylesets $(DESTDIR)$(DESKTOPDIR)
	install -m755 aerc $(DESTDIR)$(BINDIR)/aerc
	install -m644 aerc.1 $(DESTDIR)$(MANDIR)/man1/aerc.1
	install -m644 aerc-search.1 $(DESTDIR)$(MANDIR)/man1/aerc-search.1
@@ -91,6 +93,7 @@ install: all
	install -m644 templates/quoted_reply $(DESTDIR)$(SHAREDIR)/templates/quoted_reply
	install -m644 templates/forward_as_body $(DESTDIR)$(SHAREDIR)/templates/forward_as_body
	install -m644 config/default_styleset $(DESTDIR)$(SHAREDIR)/stylesets/default
	install -m644 aerc.desktop $(DESTDIR)$(DESKTOPDIR)/aerc.desktop

RMDIR_IF_EMPTY:=sh -c '\
if test -d $$0 && ! ls -1qA $$0 | grep -q . ; then \
@@ -111,6 +114,7 @@ uninstall:
	$(RM) $(DESTDIR)$(MANDIR)/man7/aerc-templates.7
	$(RM) $(DESTDIR)$(MANDIR)/man7/aerc-stylesets.7
	$(RM) -r $(DESTDIR)$(SHAREDIR)
	$(RM) $(DESTDIR)$(DESKTOPDIR)/aerc.desktop
	${RMDIR_IF_EMPTY} $(DESTDIR)$(BINDIR)
	$(RMDIR_IF_EMPTY) $(DESTDIR)$(MANDIR)/man1
	$(RMDIR_IF_EMPTY) $(DESTDIR)$(MANDIR)/man5
diff --git a/aerc.desktop b/aerc.desktop
new file mode 100644
index 0000000..6cbf9fa
--- /dev/null
+++ b/aerc.desktop
@@ -0,0 +1,21 @@
[Desktop Entry]
Version=1.0
Name=aerc

GenericName=Mail Client
GenericName[de]=Email Client
Comment=Launches the aerc email client
Comment[de]=Startet den aerc Email-Client
Keywords=Email,Mail,IMAP,SMTP
Categories=Office;Network;Email;ConsoleOnly

Type=Application
Icon=utilities-terminal
Terminal=true
Exec=aerc

[Desktop Action compose]
# enable as default mailto: handler using 
# xdg-mime default aerc.desktop x-scheme-handler/mailto
Exec=aerc %u
MimeType=x-scheme-handler/mailto;
-- 
2.32.0