summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-03-21 18:38:27 +0000
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:39:27 +0200
commitbceb36085912f2f34abf9124e7c1bb5be4d2465b (patch)
treeb43635faf9a9c8c6e210fa80e1c76c8f67ee9b78
parent1aafe220bb1aecf12d5aed2eabaa2926d2e29e2f (diff)
Add WIP .client and .service files.
These are roughly what need to get installed to make the approver (the little dialog box that pops up for incoming offers) and handler (LibreOffice itself) service-activatable. Without these, your contacts will only see that you're capable of LibreOffice tubes while you're running LibreOffice, and you won't get a prompt unless liboapprover is running.
-rw-r--r--tubes/LibreOffice.client11
-rw-r--r--tubes/LibreOfficeApprover.client8
-rw-r--r--tubes/README17
-rw-r--r--tubes/org.freedesktop.Telepathy.Client.LibreOffice.service3
-rw-r--r--tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service3
5 files changed, 42 insertions, 0 deletions
diff --git a/tubes/LibreOffice.client b/tubes/LibreOffice.client
new file mode 100644
index 000000000000..8c3356fd30d2
--- /dev/null
+++ b/tubes/LibreOffice.client
@@ -0,0 +1,11 @@
+[org.freedesktop.Telepathy.Client]
+Interfaces = org.freedesktop.Telepathy.Client.Handler;
+
+[org.freedesktop.Telepathy.Client.Handler]
+BypassApproval = false
+
+[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]
+org.freedesktop.Telepathy.Channel.TargetHandleType u = 1
+org.freedesktop.Telepathy.Channel.ChannelType s = org.freedesktop.Telepathy.Channel.Type.DBusTube
+org.freedesktop.Telepathy.Channel.Type.DBusTube.ServiceName s = org.libreoffice.calc
+
diff --git a/tubes/LibreOfficeApprover.client b/tubes/LibreOfficeApprover.client
new file mode 100644
index 000000000000..035e02255d84
--- /dev/null
+++ b/tubes/LibreOfficeApprover.client
@@ -0,0 +1,8 @@
+[org.freedesktop.Telepathy.Client]
+Interfaces = org.freedesktop.Telepathy.Client.Approver;
+
+[org.freedesktop.Telepathy.Client.Approver.ApproverChannelFilter 0]
+org.freedesktop.Telepathy.Channel.TargetHandleType u = 1
+org.freedesktop.Telepathy.Channel.ChannelType s = org.freedesktop.Telepathy.Channel.Type.DBusTube
+org.freedesktop.Telepathy.Channel.Type.DBusTube.ServiceName s = org.libreoffice.calc
+
diff --git a/tubes/README b/tubes/README
index 3527a72743fb..84d48928f80e 100644
--- a/tubes/README
+++ b/tubes/README
@@ -8,6 +8,23 @@ the same TeleConference abstraction.
To enable configure LibO with --enable-telepathy
+If you have a Telepathy-enabled LibreOffice installed to /usr (including
+liboapprover) you may also want to install the .service and .client files to
+make everything service-activatable:
+
+ mkdir -p $HOME/.local/share/telepathy/clients
+ ln -s $PWD/tubes/LibreOffice.client \
+ $PWD/tubes/LibreOfficeApprover.client \
+ $HOME/.local/share/telepathy/clients
+
+ mkdir -p $HOME/.local/share/dbus-1/services
+ ln -s $PWD/tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service \
+ $PWD/tubes/org.freedesktop.Telepathy.Client.LibreOffice.service \
+ $HOME/.local/share/dbus-1/services
+
+Otherwise, you need to make sure liboapprover and a Telepathy-enabled
+LibreOffice are running.
+
Status 2012-03-20:
* no LibO code depends on this module yet, so it is not built in a regular
diff --git a/tubes/org.freedesktop.Telepathy.Client.LibreOffice.service b/tubes/org.freedesktop.Telepathy.Client.LibreOffice.service
new file mode 100644
index 000000000000..d1257242ab17
--- /dev/null
+++ b/tubes/org.freedesktop.Telepathy.Client.LibreOffice.service
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.freedesktop.Telepathy.Client.LibreOffice
+Exec=/usr/bin/libreoffice --calc
diff --git a/tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service b/tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service
new file mode 100644
index 000000000000..89e4acf668fb
--- /dev/null
+++ b/tubes/org.freedesktop.Telepathy.Client.LibreOfficeApprover.service
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.freedesktop.Telepathy.Client.LibreOfficeApprover
+Exec=/usr/bin/liboapprover