[latexila] Autotools: handle correctly the .desktop file
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Autotools: handle correctly the .desktop file
- Date: Tue, 4 Sep 2012 20:42:40 +0000 (UTC)
commit 651c41669fb54e77fcd1c5941de5d34d80085606
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Tue Sep 4 22:38:42 2012 +0200
Autotools: handle correctly the .desktop file
configure.ac | 1 +
data/Makefile.am | 10 ++++++++--
data/latexila.desktop | 25 -------------------------
data/latexila.desktop.in.in | 24 ++++++++++++++++++++++++
po/POTFILES.in | 1 +
5 files changed, 34 insertions(+), 27 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5ff44b2..e8a1770 100644
--- a/configure.ac
+++ b/configure.ac
@@ -118,6 +118,7 @@ AC_DEFINE_UNQUOTED([SCHEMA_DIR],
AC_CONFIG_FILES([Makefile
data/Makefile
data/build_tools/Makefile
+ data/latexila.desktop.in
data/icons/Makefile
data/icons/16x16/Makefile
data/icons/22x22/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index a89cbf5..9a603cd 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,10 +5,16 @@ dist_pkgdata_DATA = \
latexhelp.html
desktopdir = $(datadir)/applications
-dist_desktop_DATA = latexila.desktop
+desktop_DATA = latexila.desktop
+ INTLTOOL_DESKTOP_RULE@
-EXTRA_DIST = org.gnome.latexila.gschema.xml
gsettings_SCHEMAS = org.gnome.latexila.gschema.xml
@GSETTINGS_RULES@
+EXTRA_DIST = \
+ latexila.desktop.in \
+ org.gnome.latexila.gschema.xml
+
+CLEANFILES = latexila.desktop
+
-include $(top_srcdir)/git.mk
diff --git a/data/latexila.desktop.in.in b/data/latexila.desktop.in.in
new file mode 100644
index 0000000..1c9c889
--- /dev/null
+++ b/data/latexila.desktop.in.in
@@ -0,0 +1,24 @@
+[Desktop Entry]
+_Name=LaTeXila
+_GenericName=Integrated LaTeX Environment
+_Comment=Edit LaTeX documents
+Exec=latexila %U
+Icon=latexila
+Terminal=false
+Type=Application
+Categories=GTK;GNOME;Office;Publishing;
+MimeType=text/x-tex;
+Actions=Window;Document;
+
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=latexila
+X-GNOME-Bugzilla-Component=other
+X-GNOME-Bugzilla-Version= VERSION@
+
+[Desktop Action Window]
+_Name=Open a New Window
+Exec=latexila --new-window
+
+[Desktop Action Document]
+_Name=Open a New Document
+Exec=latexila --new-document
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a323bab..d7d878e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,6 +2,7 @@
# Please keep this file sorted alphabetically.
[encoding: UTF-8]
data/build_tools/build_tools.pot
+data/latexila.desktop.in.in
data/org.gnome.latexila.gschema.xml
data/templates/templates.pot
src/app_settings.vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]