Browse Source

Add .desktop file.

master
Kim Woelders 5 years ago
parent
commit
115c90e6e7
  1. 15
      Makefile.am
  2. 9
      e16-keyedit.desktop.in
  3. 1
      e16-keyedit.spec.in

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

9
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

1
e16-keyedit.spec.in

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

Loading…
Cancel
Save