Hi Julien,
On 07/20/2017 09:11 AM, Julien Massot wrote:
From: Julien Massot <jmassot(a)softbankrobotics.com>
Fix:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.ServiceNotFound: Bus name
not found in system service directory
I've read up on this topic and you are correct. The D-Bus activation
file needs to be named properly.
"""
The service filename of "org.me.test.service" is then searched for in
/usr/share/dbus-1/system-services or other specified directories.
"""
https://dbus.freedesktop.org/doc/system-activation.txt
I'll add this to the commit message.
---
Makefile.am | 2 +-
configure.ac | 2 +-
src/{pacrunner.service.in => org.pacrunner.service.in} | 0
3 files changed, 2 insertions(+), 2 deletions(-)
rename src/{pacrunner.service.in => org.pacrunner.service.in} (100%)
diff --git a/Makefile.am b/Makefile.am
index dd231ef..a3f178c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,7 @@ dbusconf_DATA = src/pacrunner.conf
dbusdatadir = @DBUS_DATADIR@
-dbusdata_DATA = src/pacrunner.service
+dbusdata_DATA = src/org.pacrunner.service
endif
gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
diff --git a/configure.ac b/configure.ac
index c68adae..1577c86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,4 +150,4 @@ AC_ARG_ENABLE(datafiles, AC_HELP_STRING([--disable-datafiles],
[enable_datafiles=${enableval}])
AM_CONDITIONAL(DATAFILES, test "${enable_datafiles}" != "no")
-AC_OUTPUT(Makefile src/pacrunner.service libproxy/libproxy-1.0.pc)
+AC_OUTPUT(Makefile src/org.pacrunner.service libproxy/libproxy-1.0.pc)
diff --git a/src/pacrunner.service.in b/src/org.pacrunner.service.in
similarity index 100%
rename from src/pacrunner.service.in
rename to src/org.pacrunner.service.in