Blame SOURCES/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch

8866cd
From 3027cb7141fb65cf3eeda69c688db8c4045e2d3f Mon Sep 17 00:00:00 2001
8866cd
From: Giovanni Campagna <gcampagna-cNUdlRotFMnNLxjTenLetw@public.gmane.org>
8866cd
Date: Sat, 12 Oct 2013 17:45:25 +0200
8866cd
Subject: [PATCH] Allow using obexd without systemd in the user session
8866cd
8866cd
Not all sessions run systemd --user (actually, the majority
8866cd
doesn't), so the dbus daemon must be able to spawn obexd
8866cd
directly, and to do so it needs the full path of the daemon.
8866cd
---
8866cd
 Makefile.obexd                      | 4 ++--
8866cd
 obexd/src/org.bluez.obex.service    | 4 ----
8866cd
 obexd/src/org.bluez.obex.service.in | 4 ++++
8866cd
 3 files changed, 6 insertions(+), 6 deletions(-)
8866cd
 delete mode 100644 obexd/src/org.bluez.obex.service
8866cd
 create mode 100644 obexd/src/org.bluez.obex.service.in
8866cd
8866cd
diff --git a/Makefile.obexd b/Makefile.obexd
8866cd
index 3760867..142e7c3 100644
8866cd
--- a/Makefile.obexd
8866cd
+++ b/Makefile.obexd
8866cd
@@ -2,12 +2,12 @@
8866cd
 if SYSTEMD
8866cd
 systemduserunitdir = @SYSTEMD_USERUNITDIR@
8866cd
 systemduserunit_DATA = obexd/src/obex.service
8866cd
+endif
8866cd
 
8866cd
 dbussessionbusdir = @DBUS_SESSIONBUSDIR@
8866cd
 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
8866cd
-endif
8866cd
 
8866cd
-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
8866cd
+EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
8866cd
 
8866cd
 obex_plugindir = $(libdir)/obex/plugins
8866cd
 
8866cd
diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service
8866cd
deleted file mode 100644
8866cd
index a538088..0000000
8866cd
--- a/obexd/src/org.bluez.obex.service
8866cd
+++ /dev/null
8866cd
@@ -1,4 +0,0 @@
8866cd
-[D-BUS Service]
8866cd
-Name=org.bluez.obex
8866cd
-Exec=/bin/false
8866cd
-SystemdService=dbus-org.bluez.obex.service
8866cd
diff --git a/obexd/src/org.bluez.obex.service.in b/obexd/src/org.bluez.obex.service.in
8866cd
new file mode 100644
8866cd
index 0000000..9c815f2
8866cd
--- /dev/null
8866cd
+++ b/obexd/src/org.bluez.obex.service.in
8866cd
@@ -0,0 +1,4 @@
8866cd
+[D-BUS Service]
8866cd
+Name=org.bluez.obex
8866cd
+Exec=@libexecdir@/obexd
8866cd
+SystemdService=dbus-org.bluez.obex.service
8866cd
-- 
8866cd
1.8.3.1
8866cd