[at-spi2-core] Add the configure file for the (non-secure) accessibility bus.



commit 4d224421f95d33859c55e1d1c4e78f13ca4e7200
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Thu Dec 17 13:49:08 2009 -0800

    Add the configure file for the (non-secure) accessibility bus.
    Add a simple script file to run the bus and set the address.
    Add a desktop file to run this script at gnome-init.

 Makefile.am                 |    2 +-
 bus/Makefile.am             |   11 +++++++++++
 bus/accessibility.conf      |   40 ++++++++++++++++++++++++++++++++++++++++
 bus/at-spi-dbus-bus.desktop |    7 +++++++
 bus/at-spi-dbus-bus.in      |    7 +++++++
 configure.ac                |    2 ++
 6 files changed, 68 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 5565ece..edf1abb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,3 @@
-SUBDIRS=xml tools registryd
+SUBDIRS=xml tools registryd bus
 
 ACLOCAL_AMFLAGS=-I m4
diff --git a/bus/Makefile.am b/bus/Makefile.am
new file mode 100644
index 0000000..482a4c9
--- /dev/null
+++ b/bus/Makefile.am
@@ -0,0 +1,11 @@
+configdir=$(sysconfdir)/at-spi2
+config_DATA=\
+	accessibility.conf			
+
+atspidbusdir=$(bindir)
+atspidbus_SCRIPTS=\
+	at-spi-dbus-bus
+
+default_sessiondir = $(sysconfdir)/xdg/autostart
+default_session_DATA = at-spi-dbus-bus.desktop
+
diff --git a/bus/accessibility.conf b/bus/accessibility.conf
new file mode 100644
index 0000000..ee05ccf
--- /dev/null
+++ b/bus/accessibility.conf
@@ -0,0 +1,40 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
+<busconfig>
+
+  <type>accessibility</type>
+
+  <fork/>
+
+  <standard_system_servicedirs/>
+
+  <servicehelper>/lib/dbus-1.0/dbus-daemon-launch-helper</servicehelper>
+
+  <auth>EXTERNAL</auth>
+
+  <listen>unix:tmpdir=/tmp</listen>
+
+  <policy context="default">
+    <!-- All users can connect to system bus -->
+    <allow user="*"/>
+    <!-- Allow everything to be sent -->
+    <allow send_destination="*" eavesdrop="true"/>
+    <!-- Allow everything to be received -->
+    <allow eavesdrop="true"/>
+    <!-- Allow anyone to own anything -->
+    <allow own="*"/>
+  </policy>
+
+  <limit name="max_incoming_bytes">1000000000</limit>
+  <limit name="max_outgoing_bytes">1000000000</limit>
+  <limit name="max_message_size">1000000000</limit>
+  <limit name="service_start_timeout">120000</limit>  
+  <limit name="auth_timeout">240000</limit>
+  <limit name="max_completed_connections">100000</limit>  
+  <limit name="max_incomplete_connections">10000</limit>
+  <limit name="max_connections_per_user">100000</limit>
+  <limit name="max_pending_service_starts">10000</limit>
+  <limit name="max_names_per_connection">50000</limit>
+  <limit name="max_match_rules_per_connection">50000</limit>
+  <limit name="max_replies_per_connection">50000</limit>
+  <limit name="reply_timeout">300000</limit>
+</busconfig>
diff --git a/bus/at-spi-dbus-bus.desktop b/bus/at-spi-dbus-bus.desktop
new file mode 100644
index 0000000..b5f8622
--- /dev/null
+++ b/bus/at-spi-dbus-bus.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+_Name=AT SPI D-Bus Bus
+Exec=at-spi-dbus-bus
+OnlyShowIn=GNOME;
+NoDisplay=true
+AutostartCondition=GNOME /desktop/gnome/interface/accessibility
diff --git a/bus/at-spi-dbus-bus.in b/bus/at-spi-dbus-bus.in
new file mode 100644
index 0000000..d3d434c
--- /dev/null
+++ b/bus/at-spi-dbus-bus.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+prefix= prefix@
+sysconfdir= sysconfdir@
+
+address=`dbus-daemon --config-file=${sysconfdir}/at-spi2/accessibility.conf --print-address`
+xprop -root -f AT_SPI_BUS 8s -set AT_SPI_BUS ${address}
diff --git a/configure.ac b/configure.ac
index 674221d..5c49615 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,6 +125,8 @@ AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
 AC_CONFIG_FILES([Makefile
 		 xml/Makefile
 		 tools/Makefile
+		 bus/Makefile
+		 bus/at-spi-dbus-bus
 		 registryd/Makefile])
 
 AC_OUTPUT



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]