summaryrefslogtreecommitdiff
path: root/xfce4-session/xfsm-manager.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2011-02-17 20:56:43 +0100
committerNick Schermer <nick@xfce.org>2011-02-17 21:01:35 +0100
commitb2ccb203b6125cb45aaf7c3d86e9604f05f60755 (patch)
treec4566b85632d0ec8a10c250281cdee4bcf34ab93 /xfce4-session/xfsm-manager.c
parentc23466a351635db9bd6f49870c72ee1fd16a6183 (diff)
downloadxfce4-session-b2ccb203b6125cb45aaf7c3d86e9604f05f60755.tar.gz
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.
Diffstat (limited to 'xfce4-session/xfsm-manager.c')
-rw-r--r--xfce4-session/xfsm-manager.c9
1 files changed, 9 insertions, 0 deletions
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