Merge lp:~themuso/unity-greeter/remove-manual-atspi-activation into lp:unity-greeter

Proposed by Luke Yelavich
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 2242
Merged at revision: 2459
Proposed branch: lp:~themuso/unity-greeter/remove-manual-atspi-activation
Merge into: lp:unity-greeter
Diff against target: 48 lines (+0/-31)
1 file modified
src/unity-greeter.vala (+0/-31)
To merge this branch: bzr merge lp:~themuso/unity-greeter/remove-manual-atspi-activation
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+326048@code.launchpad.net

Commit message

Remove at-spi load/kill code

With recent versions of lightdm, at-spi is unable to properly clean up after
itself, thus breaking accessibility for the logged in session. However it
seems that if systemd handles the activation and cleanup of at-spi, things
work properly.

Description of the change

Remove at-spi load/kill code

With recent versions of lightdm, at-spi is unable to properly clean up after
itself, thus breaking accessibility for the logged in session. However it
seems that if systemd handles the activation and cleanup of at-spi, things
work properly.

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) wrote :

As discussed on IRC this sounds reasonable, thanks!

review: Approve
Revision history for this message
Sean Davis (bluesabre) wrote :

It looks like this was approved but never merged in. Still interested in this for unity-greeter?

Revision history for this message
Luke Yelavich (themuso) wrote :

On Thu, Mar 01, 2018 at 11:32:02PM AEDT, Sean Davis wrote:
> It looks like this was approved but never merged in. Still interested in this for unity-greeter?

I vaguely remember getting something into unity-greeter back when I wrote those fixes. No idea whether its still really needed given the move to GNOME, I am no longer active in Ubuntu and don't even use it myself any more so have no idea if any flavour is using it or not.

Luke

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Approved from me. This is still relevant for unity-greeter. And with systemd-240 it is starting to spam syslog.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-greeter.vala'
2--- src/unity-greeter.vala 2016-11-08 23:15:47 +0000
3+++ src/unity-greeter.vala 2017-06-21 04:33:32 +0000
4@@ -555,25 +555,6 @@
5 /* Set up the accessibility stack, in case the user needs it for screen reading etc. */
6 Environment.set_variable ("GTK_MODULES", "atk-bridge", false);
7
8- Pid atspi_pid = 0;
9-
10- try
11- {
12- string[] argv;
13-
14- Shell.parse_argv ("/usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately", out argv);
15- Process.spawn_async (null,
16- argv,
17- null,
18- SpawnFlags.SEARCH_PATH,
19- null,
20- out atspi_pid);
21- }
22- catch (Error e)
23- {
24- warning ("Error starting the at-spi registry: %s", e.message);
25- }
26-
27 Gtk.init (ref args);
28 Ido.init ();
29
30@@ -703,18 +684,6 @@
31
32 debug ("Cleaning up");
33
34- if (atspi_pid != 0)
35- {
36- Posix.kill (atspi_pid, Posix.SIGKILL);
37- int status;
38- Posix.waitpid (atspi_pid, out status, 0);
39- if (Process.if_exited (status))
40- debug ("AT-SPI exited with return value %d", Process.exit_status (status));
41- else
42- debug ("AT-SPI terminated with signal %d", Process.term_sig (status));
43- atspi_pid = 0;
44- }
45-
46 debug ("Exiting");
47
48 return Posix.EXIT_SUCCESS;

Subscribers

People subscribed via source and target branches