kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16-keyedit.git/commit/?id=115c90e6e74e1d98b98475e008de29f24a0ae070

commit 115c90e6e74e1d98b98475e008de29f24a0ae070
Author: Kim Woelders <[email protected]>
Date:   Sun Apr 16 11:08:58 2017 +0200

    Add .desktop file.
---
 Makefile.am            | 15 +++++++++++++--
 e16-keyedit.desktop.in |  9 +++++++++
 e16-keyedit.spec.in    |  1 +
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 8bdd23f..fc2a7fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,8 +4,11 @@ ACLOCAL_AMFLAGS = -I m4
 
 MAINTAINERCLEANFILES = aclocal.m4 config.* compile configure depcomp \
                       install-sh missing \
-                      Makefile.in \
-                      *~
+                      Makefile.in
+
+CLEANFILES = e16-keyedit.desktop
+
+EXTRA_DIST = e16-keyedit.desktop.in
 
 bin_PROGRAMS = e16keyedit
 
@@ -14,3 +17,11 @@ e16keyedit_SOURCES = ipc.c menus.c viewer.c e16keyedit.h
 CPPFLAGS = -D DATADIR=\"$(datadir)\" $(GTK_CFLAGS) $(CFLAGS_WARNINGS)
 
 LDADD = $(GTK_LIBS) $(X_LIBS) -lX11
+
+applicationdir = $(datadir)/applications
+application_DATA = e16-keyedit.desktop
+
+e16-keyedit.desktop: $(srcdir)/e16-keyedit.desktop.in Makefile
+
+e16-keyedit.desktop:
+       sed -e "s=@e16datadir@=${datadir}=" $(srcdir)/[email protected] > $@
diff --git a/e16-keyedit.desktop.in b/e16-keyedit.desktop.in
new file mode 100644
index 0000000..10beb21
--- /dev/null
+++ b/e16-keyedit.desktop.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=e16keyedit
+Comment=Manage e16 keybindings
+Categories=Settings;DesktopSettings;
+Terminal=false
+Icon=@e16datadir@/e16/icons/e16.png
+Exec=e16keyedit
diff --git a/e16-keyedit.spec.in b/e16-keyedit.spec.in
index 7b380db..ed063c3 100644
--- a/e16-keyedit.spec.in
+++ b/e16-keyedit.spec.in
@@ -36,5 +36,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-, root, root)
 %doc README COPYING AUTHORS ChangeLog 
 %{_bindir}/*
+%{_datadir}/applications/@[email protected]
 
 %changelog

-- 


Reply via email to