After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347124 - Orca hangs when attempting to access apps started via gksu
Orca hangs when attempting to access apps started via gksu
Status: RESOLVED FIXED
Product: orca
Classification: Applications
Component: general
unspecified
Other Linux
: High critical
: 2.18.0
Assigned To: Rich Burridge
Orca Maintainers
Depends on: 163132
Blocks:
 
 
Reported: 2006-07-10 17:47 UTC by Willie Walker
Modified: 2008-07-22 19:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to implement the suggestion in comment #9. (4.42 KB, patch)
2007-01-03 17:37 UTC, Rich Burridge
none Details | Review
Move keyboard layout to be the first item on the General preferences pane. (4.45 KB, patch)
2007-01-03 18:32 UTC, Rich Burridge
none Details | Review

Description Willie Walker 2006-07-10 17:47:18 UTC
The gksu utility is used to launch applications as root, and users encounter it when attempting to run an application such as Ubuntu's "synaptic" from the launch menu (i.e., gksu is the app that pops up a GUI asking you for a password to run something as root).  When an application is launched via gksu, Orca attempts to access the application via a call to getChildAtIndex on the desktop object and the call will hang, hanging Orca.

As a workaround to prevent the hang, users can launch the application from a command line prompt.  Note that this does not provide access to the application (a fix for AT-SPI is being proposed for that).

This is not necessarily an Orca bug, but it is something we discovered recently and I want to make sure we at least have it written down somewhere.
Comment 1 Willie Walker 2006-07-10 17:55:04 UTC
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report and for your fix.  :-)
Comment 2 Willie Walker 2006-07-10 18:49:49 UTC
Whoops!  Closed the wrong bug.
Comment 4 Rich Burridge 2006-07-25 23:12:23 UTC
Tracking...
Comment 5 Willie Walker 2006-10-15 00:25:23 UTC
Add accessibility keyword.  Apologies for spam.
Comment 6 Rich Burridge 2006-10-17 22:52:07 UTC
This one probably is Linux specific. Note adjusting OS field.
Comment 7 Willie Walker 2006-11-10 13:47:52 UTC
Additional info:  one can cause this hang w/o Orca.  Do the following:

gksu gedit& (wait for gedit to come up)

at-poke (at-poke will hang)

Comment 8 Willie Walker 2006-11-13 22:01:09 UTC
Additional info: the hang appears to be related to the fact the gksu grabs the kayboard by default.  One can disable this via:

gconftool-2 --type bool --set /apps/gksu/disable-grab "true"

This prevents the hang, but Orca stops speaking while the app is up and running.  Coupling disabling the grab with the fix for http://bugzilla.gnome.org/show_bug.cgi?id=163132 might work, however.
Comment 9 Willie Walker 2007-01-02 22:57:31 UTC
(In reply to comment #8)
> Additional info: the hang appears to be related to the fact the gksu grabs the
> kayboard by default.  One can disable this via:
> 
> gconftool-2 --type bool --set /apps/gksu/disable-grab "true"
> 
> This prevents the hang, but Orca stops speaking while the app is up and
> running.  Coupling disabling the grab with the fix for
> http://bugzilla.gnome.org/show_bug.cgi?id=163132 might work, however.

As an alternative to requiring users to do this, we will provide a checkbox in the "General" preferences tab that allows the user to "Disable gksu keyboard grab".  Since the grab is for security purposes, we will not disable it by default.
Comment 10 Rich Burridge 2007-01-03 17:37:18 UTC
Created attachment 79290 [details] [review]
Patch to implement the suggestion in comment #9.

Changes checked into SVN trunk. It seems to work nicely.
Before I close the bug as FIXED, could others please let 
me know if there are any changes needed (i.e. different 
location on the General Orca Preferences tab) or problems.
Thanks.
Comment 11 Rich Burridge 2007-01-03 17:38:55 UTC
Adjusting the summary as this bug is no longer blocked.
Comment 12 Mike Pedersen 2007-01-03 18:14:05 UTC
Only one really minor change to the dialog.  Could you make the keyboard layout the first in the tab order ?  I think this is the option that users will change most often.  
thanks
Comment 13 Rich Burridge 2007-01-03 18:32:40 UTC
Created attachment 79294 [details] [review]
Move keyboard layout to be the first item on the General preferences pane.

No problem. Done. Changes checked into SVN trunk.

As Will mentioned, we'll need to keep this bug open until
we've had a chance to check that everything works with GNOME 2.17
(eg. an announced "stable" Ubuntu Fiesty build).
Comment 14 Rich Burridge 2007-01-10 20:11:31 UTC
Mike just phoned be and says that this works great. Thanks!
Closing it as FIXED.
Comment 15 Rich Burridge 2007-01-26 18:19:42 UTC
Well it looks like I shouldn't have done that last python-dbus update.
The update-manager just crashes every time now (even after a reboot).

GTK Accessibility Module initialized
Traceback (most recent call last):
  • File "/usr/bin/update-manager", line 86 in <module>
    app = UpdateManager(data_dir)
  • File "/usr/lib/python2.5/site-packages/UpdateManager/UpdateManager.py", line 300 in __init__
    self.setupDbus()
  • File "/usr/lib/python2.5/site-packages/UpdateManager/UpdateManager.py", line 440 in setupDbus
    '/org/freedesktop/UpdateManagerObject')
  • File "/var/lib/python-support/python2.5/dbus/_dbus.py", line 412 in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  • File "/var/lib/python-support/python2.5/dbus/proxies.py", line 232 in __init__
    _dbus_bindings.UInt32(0))
  • File "/var/lib/python-support/python2.5/dbus/proxies.py", line 171 in __call__
    reply_message = self._connection.send_message_with_reply_and_block(message, timeout)
dbus.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UpdateManager was not provided by any .service files

Comment 16 Rich Burridge 2007-01-26 19:04:48 UTC
Ignore that last comment. It should have been for bug #400763.