[polari] Add telepathy service and data files
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Add telepathy service and data files
- Date: Tue, 3 Mar 2015 00:26:44 +0000 (UTC)
commit 21df75d2012c31eb0586d105fba528c21fbbe92e
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Mon Mar 2 01:12:17 2015 -0800
Add telepathy service and data files
We need to claim the Telepathy name as activatable in order
to be started by mission control when there is a channel
request to handle.
We claim we support all channels of type text, with all
handle types, like empathy-chat does. If we see a channel
of type != irc, we'll return an error and mission control
will transparently move to the next handler.
https://bugzilla.gnome.org/show_bug.cgi?id=745418
data/Makefile.am | 8 ++++++--
data/Polari.client | 14 ++++++++++++++
....freedesktop.Telepathy.Client.Polari.service.in | 3 +++
3 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index d257e4f..a3fd601 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,9 +8,10 @@ desktop_in_files = $(APP_ID).desktop.in
servicedir = $(datadir)/dbus-1/services
service_DATA = $(service_in_files:.service.in=.service)
-service_in_files = $(APP_ID).service.in
+service_in_files = $(APP_ID).service.in \
+ org.freedesktop.Telepathy.Client.Polari.service.in
-$(APP_ID).service: $(APP_ID).service.in Makefile
+%.service: %.service.in Makefile
$(AM_V_GEN) sed -e "s|\ bindir\@|$(bindir)|" $< > $@
check-local:
@@ -26,6 +27,9 @@ resource_DATA=$(APP_ID).data.gresource
gsettings_SCHEMAS = $(APP_ID).gschema.xml
@GSETTINGS_RULES@
+clientdir=$(datadir)/telepathy/clients
+dist_client_DATA = Polari.client
+
EXTRA_DIST = \
$(desktop_in_files) \
$(service_in_files) \
diff --git a/data/Polari.client b/data/Polari.client
new file mode 100644
index 0000000..3d0bd91
--- /dev/null
+++ b/data/Polari.client
@@ -0,0 +1,14 @@
+[org.freedesktop.Telepathy.Client]
+Interfaces=org.freedesktop.Telepathy.Client.Handler
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=0
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 1]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=1
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 2]
+org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.Text
+org.freedesktop.Telepathy.Channel.TargetHandleType u=2
diff --git a/data/org.freedesktop.Telepathy.Client.Polari.service.in
b/data/org.freedesktop.Telepathy.Client.Polari.service.in
new file mode 100644
index 0000000..741036d
--- /dev/null
+++ b/data/org.freedesktop.Telepathy.Client.Polari.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.freedesktop.Telepathy.Client.Polari
+Exec= bindir@/polari --gapplication-service
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]