Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a .desktop file for ibus-setup-skk.

  • Loading branch information...
commit 2e8f1d2781f7e4cfdf2feee63a99517a8ca40c7a 1 parent 168f89c
@ueno authored
View
1  po/POTFILES.in
@@ -1,3 +1,4 @@
src/engine.vala
src/setup.vala
[type: gettext/glade]src/ibus-skk-preferences.ui.in
+src/ibus-setup-skk.desktop.in.in
View
2  po/POTFILES.skip
@@ -1,4 +1,4 @@
+src/ibus-setup-skk.desktop.in
src/ibus-skk-preferences.ui
src/engine.c
src/setup.c
-
View
17 src/Makefile.am
@@ -69,6 +69,20 @@ ibus_setup_skk_SOURCES = \
setupdir = $(pkgdatadir)/setup
setup_DATA = ibus-skk-preferences.ui
+desktop_in_in_files = ibus-setup-skk.desktop.in.in
+desktop_in_files = $(desktop_in_in_files:.in.in=.in)
+
+$(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
+ $(AM_V_GEN) sed \
+ -e "s|\@libexecdir\@|$(libexecdir)|" \
+ -e "s|\@pkgdatadir\@|$(pkgdatadir)|" \
+ $< > $@.tmp && mv $@.tmp $@
+
+desktopdir=$(datadir)/applications
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+@INTLTOOL_DESKTOP_RULE@
+
GITIGNOREFILES = \
$(libutil_la_SOURCES:.vala=.c) \
$(ibus_engine_skk_SOURCES:.vala=.c) \
@@ -81,6 +95,8 @@ GITIGNOREFILES = \
CLEANFILES = \
ibus-skk.vapi \
+ $(desktop_DATA) \
+ $(desktop_in_files) \
$(NULL)
EXTRA_DIST = \
@@ -89,6 +105,7 @@ EXTRA_DIST = \
ibus-1.0.vapi \
ibus-1.0.deps \
ibus-skk-preferences.ui.in \
+ $(desktop_in_in_files) \
$(NULL)
DISTCLEANFILES = \
View
8 src/ibus-setup-skk.desktop.in.in
@@ -0,0 +1,8 @@
+[Desktop Entry]
+_Name=IBus SKK Setup
+_Comment=Set up IBus SKK engine
+Exec=@libexecdir@/ibus-setup-skk
+Icon=@pkgdatadir@/icons/ibus-skk.svg
+NoDisplay=true
+Type=Application
+StartupNotify=true
Please sign in to comment.
Something went wrong with that request. Please try again.