Limit service activation to accessibility bus
authorMagdalen Berns <m.berns@thismagpie.com>
Fri, 26 Sep 2014 17:17:51 +0000 (18:17 +0100)
committerMike Gorse <mgorse@suse.com>
Tue, 7 Oct 2014 09:14:47 +0000 (04:14 -0500)
Instead of having to send a message to an activatable
service listed in $datadir/dbus-1/services it is
better to limit these and define an accessibility-services
directory and list services in there explicitly

Co-authored by: Mike Gorse <mgorse@suse.com>

Bug https://bugzilla.gnome.org/show_bug.cgi?id=722738

bus/Makefile.am
bus/accessibility.conf
registryd/Makefile.am

index de6ea4f..c65de94 100644 (file)
@@ -20,7 +20,7 @@ at-spi-dbus-bus.desktop: at-spi-dbus-bus.desktop.in
 EXTRA_DIST += at-spi-dbus-bus.desktop.in
 CLEANFILES += at-spi-dbus-bus.desktop
 
-dbusservicedir=$(datadir)/dbus-1/services
+dbusservicedir=$(DBUS_SERVICES_DIR)
 dbusservice_DATA = org.a11y.Bus.service
 
 org.a11y.Bus.service: org.a11y.Bus.service.in
index b9367d0..a5c770e 100644 (file)
@@ -3,8 +3,6 @@
 
   <type>accessibility</type>
 
-  <standard_session_servicedirs/>
-
   <auth>EXTERNAL</auth>
 
   <listen>unix:tmpdir=/tmp</listen>
index 43cb147..c9c9d39 100644 (file)
@@ -55,7 +55,7 @@ else
 EXTRA_DIST = $(X11_SOURCES)
 endif
 
-servicedir       = $(DBUS_SERVICES_DIR)
+servicedir=$(datadir)/dbus-1/accessibility-services
 service_in_files = org.a11y.atspi.Registry.service.in
 service_DATA     = $(service_in_files:.service.in=.service)