Add desktop file and D-Bus service files for cinaest and the IMDb downloader
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 2 Nov 2009 13:36:44 +0000 (14:36 +0100)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 3 Nov 2009 13:26:31 +0000 (14:26 +0100)
Use "org.maemo.garage.cinaest" D-Bus service name.

Makefile.am
configure.ac
data/cinaest.desktop.in [new file with mode: 0644]
data/org.maemo.garage.cinaest.IMDb.service.in [new file with mode: 0644]
data/org.maemo.garage.cinaest.service.in [new file with mode: 0644]
src/main.vala

index 428f9c5..d08053a 100644 (file)
@@ -15,6 +15,13 @@ libexec_PROGRAMS = \
 pkglib_LTLIBRARIES = \
        libimdb-plugin.la
 
+dbusservice_DATA = \
+       data/org.maemo.garage.cinaest.service \
+       data/org.maemo.garage.cinaest.IMDb.service
+
+desktopentry_DATA = \
+       data/cinaest.desktop
+
 # Sources
 cinaest_SOURCES = \
         src/main.c \
index 8b27c60..6201ab6 100644 (file)
@@ -43,6 +43,8 @@ AC_SUBST(DBUS_CFLAGS)
 PKG_CHECK_MODULES(OSSOSETTINGS, osso-af-settings >= 0.9.2)
 
 localedir=`$PKG_CONFIG osso-af-settings --variable=localedir`
+dbusservicedir=`$PKG_CONFIG osso-af-settings --variable=dbusservicedir`
+desktopentrydir=`$PKG_CONFIG osso-af-settings --variable=desktopentrydir`
 
 # Localization-related
 AC_PROG_INTLTOOL([0.40.5])
@@ -55,10 +57,14 @@ AC_SUBST(ALL_LINGUAS)
 AC_SUBST(localedir)
 AC_DEFINE_UNQUOTED(LOCALEDIR, "$localedir", [localedir])
 
+AC_SUBST(dbusservicedir)
 AC_SUBST(desktopentrydir)
 
 AC_OUTPUT([
        Makefile
        po/Makefile.in
        po/Makefile
+       data/org.maemo.garage.cinaest.service
+       data/org.maemo.garage.cinaest.IMDb.service
+       data/cinaest.desktop
 ])
diff --git a/data/cinaest.desktop.in b/data/cinaest.desktop.in
new file mode 100644 (file)
index 0000000..3ab5d02
--- /dev/null
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Type=Application
+Name=Cinæst
+Exec=@prefix@/bin/cinaest
+Icon=general_video
+X-Window-Icon=cinaest
+X-Window-Icon-Dimmed=cinaest
+X-Osso-Service=org.maemo.garage.cinaest
+X-Osso-Type=application/x-executable
diff --git a/data/org.maemo.garage.cinaest.IMDb.service.in b/data/org.maemo.garage.cinaest.IMDb.service.in
new file mode 100644 (file)
index 0000000..1689380
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.maemo.garage.cinaest.IMDb
+Exec=@libexecdir@/imdb-plaintext-downloader
diff --git a/data/org.maemo.garage.cinaest.service.in b/data/org.maemo.garage.cinaest.service.in
new file mode 100644 (file)
index 0000000..355ee6d
--- /dev/null
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.maemo.garage.cinaest
+Exec=@prefix@/bin/cinaest
index cd2bd03..b4d89bb 100644 (file)
@@ -78,7 +78,7 @@ public class CinaestProgram : Hildon.Program {
                Intl.bindtextdomain (Config.GETTEXT_PACKAGE, Config.LOCALEDIR);
                Intl.textdomain (Config.GETTEXT_PACKAGE);
 
-               var osso_context = new Osso.Context ("org.maemo.cinaest", Config.VERSION, true, null);
+               var osso_context = new Osso.Context ("org.maemo.garage.cinaest", Config.VERSION, true, null);
                if (osso_context == null) {
                        return Osso.Status.ERROR;
                }