Add the configure file for the (non-secure) accessibility bus.
authorMark Doffman <mark.doffman@codethink.co.uk>
Thu, 17 Dec 2009 21:49:08 +0000 (13:49 -0800)
committerMark Doffman <mark.doffman@codethink.co.uk>
Thu, 17 Dec 2009 21:49:08 +0000 (13:49 -0800)
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
bus/Makefile.am [new file with mode: 0644]
bus/accessibility.conf [new file with mode: 0644]
bus/at-spi-dbus-bus.desktop [new file with mode: 0644]
bus/at-spi-dbus-bus.in [new file with mode: 0644]
configure.ac

index 5565ece..edf1abb 100644 (file)
@@ -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 (file)
index 0000000..482a4c9
--- /dev/null
@@ -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 (file)
index 0000000..ee05ccf
--- /dev/null
@@ -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 (file)
index 0000000..b5f8622
--- /dev/null
@@ -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 (file)
index 0000000..d3d434c
--- /dev/null
@@ -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}
index 674221d..5c49615 100644 (file)
@@ -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