Comment 0 for bug 971316

Revision history for this message
Attila Hammer (hammera) wrote :

Dear Developers,

If in Unity Greeter the screen reader a11y support are enabled, random time Orca exiting after started.
This situation Orca spokening following type message:
"Welcome to Orca.
Login frame.
Good bye."
If this problem are happening, I need press two time the CTRL+S keystroke to start Orca again in login screen.

In unity-greeter source package the src/menubar.vala file have following code with Orca related:
    private void screen_reader_toggled_cb (Gtk.CheckMenuItem item)
    {
        /* FIXME: The below would be sufficient if gnome-session were running
         * to notice and run a screen reader in /etc/xdg/autostart... But
         * since we're not running gnome-session, we hardcode orca here.
        /*var settings = new Settings ("org.gnome.desktop.a11y.applications");*/
        /*settings.set_boolean ("screen-reader-enabled", item.active);*/

        UGSettings.set_boolean (UGSettings.KEY_SCREEN_READER, item.active);

        /* Hardcoded orca: */
        try
        {
            if (item.active)
                Process.spawn_command_line_async ("orca --replace --no-setup --disable splash-window,main-window");
            else
                Process.spawn_command_line_async ("orca --quit");
        }
        catch (Error e)
        {
            warning ("Failed to run Orca: %s", e.message);
        }
    }

Attila

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity-greeter 0.2.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic-pae 3.2.13
Uname: Linux 3.2.0-21-generic-pae i686
ApportVersion: 2.0-0ubuntu2
Architecture: i386
Date: Mon Apr 2 09:22:23 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120327)
SourcePackage: unity-greeter
UpgradeStatus: No upgrade log present (probably fresh install)