From b2ccb203b6125cb45aaf7c3d86e9604f05f60755 Mon Sep 17 00:00:00 2001 From: Nick Schermer Date: Thu, 17 Feb 2011 20:56:43 +0100 Subject: Add support for starting assistive technologies. Xfce4-session now launches the required at-spi register applications and takes care of loading the Gtk modules if the xfconf key /general/StartAt is enabled. The at-spi applications are launched before the failsafe applications (panel, wm, desktop) and waits for a maximum of 2 seconds until the at-bridge is created. When accessibility is disabled and Gnome services are enabled we previously started the at-spi desktop files, this is not done anymore if accessibility is disabled in Xfsm. --- xfce4-session/xfsm-manager.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xfce4-session/xfsm-manager.c') diff --git a/xfce4-session/xfsm-manager.c b/xfce4-session/xfsm-manager.c index 07c53690..5d9b790f 100644 --- a/xfce4-session/xfsm-manager.c +++ b/xfce4-session/xfsm-manager.c @@ -102,6 +102,8 @@ struct _XfsmManager gchar *session_file; gchar *checkpoint_session_name; + gboolean start_at; + gboolean compat_gnome; gboolean compat_kde; @@ -729,6 +731,7 @@ xfsm_manager_load (XfsmManager *manager, manager->compat_gnome = xfconf_channel_get_bool (channel, "/compat/LaunchGNOME", FALSE); manager->compat_kde = xfconf_channel_get_bool (channel, "/compat/LaunchKDE", FALSE); + manager->start_at = xfconf_channel_get_bool (channel, "/general/StartAt", FALSE); display_name = xfsm_gdk_display_get_fullname (gdk_display_get_default ()); @@ -1774,6 +1777,12 @@ xfsm_manager_get_compat_startup (XfsmManager *manager, } +gboolean +xfsm_manager_get_start_at (XfsmManager *manager) +{ + return manager->start_at; +} + /* * dbus server impl -- cgit v1.2.1