[latexila] Make LaTeXila D-Bus activatable



commit 7f48812712d83ef26ef8ee4fa806dc5957f5281f
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Dec 18 19:52:31 2015 +0100

    Make LaTeXila D-Bus activatable
    
    https://wiki.gnome.org/HowDoI/DBusApplicationLaunching

 data/Makefile.am                      |   12 +++++++++++-
 data/org.gnome.latexila.desktop.in.in |    8 +++++---
 2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index b111249..1a67258 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -15,6 +15,15 @@ appdata_DATA = org.gnome.latexila.appdata.xml
 gsettings_SCHEMAS = org.gnome.latexila.gschema.xml
 @GSETTINGS_RULES@
 
+dbusservicedir = $(datadir)/dbus-1/services
+dbusservice_DATA = org.gnome.latexila.service
+
+org.gnome.latexila.service: Makefile
+       $(AM_V_GEN) (echo '[D-BUS Service]'; \
+                    echo 'Name=org.gnome.latexila'; \
+                    echo 'Exec=${bindir}/latexila --gapplication-service') > $  tmp && \
+                    mv $  tmp $@
+
 EXTRA_DIST =                                   \
        org.gnome.latexila.appdata.xml.in       \
        org.gnome.latexila.desktop.in           \
@@ -23,6 +32,7 @@ EXTRA_DIST =                                  \
 CLEANFILES =                           \
        org.gnome.latexila.appdata.xml  \
        org.gnome.latexila.desktop      \
-       org.gnome.latexila.gschema.xml
+       org.gnome.latexila.gschema.xml  \
+       org.gnome.latexila.service
 
 -include $(top_srcdir)/git.mk
diff --git a/data/org.gnome.latexila.desktop.in.in b/data/org.gnome.latexila.desktop.in.in
index 34548c3..bcf2dc0 100644
--- a/data/org.gnome.latexila.desktop.in.in
+++ b/data/org.gnome.latexila.desktop.in.in
@@ -7,19 +7,21 @@ Exec=latexila %U
 Icon=latexila
 Terminal=false
 Type=Application
+StartupNotify=true
 Categories=GNOME;GTK;Office;WordProcessor;Publishing;
 MimeType=text/x-tex;
-Actions=Window;Document;
+DBusActivatable=true
+Actions=new-window;new-document;
 
 X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=latexila
 X-GNOME-Bugzilla-Component=other
 X-GNOME-Bugzilla-Version= VERSION@
 
-[Desktop Action Window]
+[Desktop Action new-window]
 _Name=Open a New Window
 Exec=latexila --new-window
 
-[Desktop Action Document]
+[Desktop Action new-document]
 _Name=Open a New Document
 Exec=latexila --new-document


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]