Add .desktop file.

This commit is contained in:
Kim Woelders 2017-04-16 11:08:58 +02:00
parent 44a553413b
commit 115c90e6e7
3 changed files with 23 additions and 2 deletions

View File

@ -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)/$@.in > $@

9
e16-keyedit.desktop.in Normal file
View File

@ -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

View File

@ -36,5 +36,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%doc README COPYING AUTHORS ChangeLog
%{_bindir}/*
%{_datadir}/applications/@PACKAGE@.desktop
%changelog