diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-26 00:33:16 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-26 00:33:16 -0400 |
commit | 84704dd28c3fbf50053afe26cfdf81539668c10a (patch) | |
tree | fe429f7baa2f6ddeb1d5ea6ea5332f1486938205 | |
parent | 029be92c769fa7827d44b2641cd29476f1417419 (diff) |
Add .desktop files for emacsmail and emacsterm
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | emacsmail.desktop | 11 | ||||
-rw-r--r-- | emacsterm.desktop | 10 |
3 files changed, 29 insertions, 9 deletions
@@ -1,13 +1,6 @@ -DESTDIR= -prefix=/usr/local -exec_prefix=$(prefix) -bindir=$(exec_prefix)/bin - bash=/usr/bin/env bash EDIT = { m4 -P | sed -e 's|@bash@|$(bash)|g' -e 's|@VERSION@|$(VERSION)|'; } -INSTALL_PROGRAM = install -Dm755 -RM = rm -f PACKAGE = emacsutils VERSION = 0.9 @@ -26,15 +19,21 @@ else -include .srcfiles.mk endif -std.out_files = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm -std.sys_files = $(addprefix $(bindir)/,$(std.out_files)) +programs = ediff emacsmail emacsterm emacsterm-rxvt emacsterm-xterm +desktops = emacsmail emacsterm +std.out_files = $(programs) $(addsuffix .desktop,$(desktops)) +std.sys_files = $(addprefix $(bindir)/,$(programs)) $(foreach d,$(desktops),$(datarootdir)/applications/$d.desktop) std.clean_files += *.sh %.sh: %.sh.in common.sh.in .var.bash .var.VERSION $(EDIT) < $< > $@ $(DESTDIR)$(bindir)/%: % + $(NORMAL_INSTALL) $(INSTALL_PROGRAM) $< $@ +$(DESTDIR)$(datarootdir)/applications/%: % + $(NORMAL_INSTALL) + $(INSTALL_DATA) $< $@ .var.%: FORCE @printf '%s' '$($*)' | sed 's|^|#|' | $(WRITE_IFCHANGED) '$@' diff --git a/emacsmail.desktop b/emacsmail.desktop new file mode 100644 index 0000000..72d8f65 --- /dev/null +++ b/emacsmail.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Emacs Mail +Comment=Use Emacs to write emails +Exec=emacsmail -c %f +Icon=emacs +Type=Application +Terminal=false +StartupWMClass=Emacs + +Categories=Network;Office;Email; +MimeType=x-scheme-handler/mailto; diff --git a/emacsterm.desktop b/emacsterm.desktop new file mode 100644 index 0000000..e4acd4e --- /dev/null +++ b/emacsterm.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Emacs Term +Comment=Use Emacs as a terminal emulator +Exec=emacsterm -c +Icon=emacs +Type=Application +Terminal=false +StartupWMClass=Emacs + +Categories=System;TerminalEmulator; |