19928N/A gboolean elevated_privilege = TRUE;
19928N/A@@ -540,6 +540,11 @@ main (int argc, char **argv)
19928N/A bindtextdomain(PACKAGE_NAME, LOCALEDIR);
19928N/A bind_textdomain_codeset (PACKAGE_NAME, "UTF-8");
19928N/A@@ -676,8 +681,42 @@ main (int argc, char **argv)
19928N/A- gksu_context_set_grab (context, TRUE);
19928N/A+ * Disable the grab if accessibility is on, since it causes issues
19928N/A+ * for GOK, dasher and other AT programs where the user may need to interact
19928N/A+ * with other GUI programs. Note that we call gconftool-2 instead of using
19928N/A+ * GConf interfaces since it seems using GConf in gksu causes problems for
19928N/A+ * a11y if you run a program with gksu that has a GUI. The launched program
19928N/A+ * will not work with a11y if gksu uses GConf, but calling gconftool-2 works.
19928N/A+ g_shell_parse_argv (gconf_cmd, NULL, &gconf_argv, &error);
19928N/A+ if (std_output != NULL && strcmp (std_output, "true") == 0)
19928N/A+ gksu_context_set_grab (context, force_grab);