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