Merge lp:~pitti/unity-greeter/systemd-indicators into lp:unity-greeter

Proposed by Martin Pitt
Status: Merged
Merged at revision: 2051
Proposed branch: lp:~pitti/unity-greeter/systemd-indicators
Merge into: lp:unity-greeter
Diff against target: 88 lines (+12/-18)
3 files modified
debian/changelog (+7/-0)
debian/control (+2/-2)
src/unity-greeter.vala (+3/-16)
To merge this branch: bzr merge lp:~pitti/unity-greeter/systemd-indicators
Reviewer Review Type Date Requested Status
Robert Ancell Approve
Review via email: mp+309321@code.launchpad.net

Commit message

* Move indicator launching from upstart to systemd.
* Depend on lightdm with the "no duplicate session D-Bus" fix.

Description of the change

Start the indicators through their systemd user units instead of upstart.

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

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2016-08-18 15:58:43 +0000
+++ debian/changelog 2016-10-26 08:27:48 +0000
@@ -1,3 +1,10 @@
1unity-greeter (17.04.1) UNRELEASED; urgency=medium
2
3 * Move indicator launching from upstart to systemd.
4 * Depend on lightdm with the "no duplicate session D-Bus" fix.
5
6 -- Martin Pitt <martin.pitt@ubuntu.com> Tue, 25 Oct 2016 15:04:33 +0200
7
1unity-greeter (16.10.2.1) yakkety; urgency=medium8unity-greeter (16.10.2.1) yakkety; urgency=medium
29
3 * Apply the Gtk.ResizeMode.QUEUE fix to another place, so that the shutdown10 * Apply the Gtk.ResizeMode.QUEUE fix to another place, so that the shutdown
411
=== modified file 'debian/control'
--- debian/control 2016-08-02 19:23:54 +0000
+++ debian/control 2016-10-26 08:27:48 +0000
@@ -31,7 +31,7 @@
31Architecture: any31Architecture: any
32Depends: ${misc:Depends},32Depends: ${misc:Depends},
33 ${shlibs:Depends},33 ${shlibs:Depends},
34 upstart,34 systemd,
35 unity-settings-daemon (>= 15.04.1+16.10.20160615-0ubuntu1)35 unity-settings-daemon (>= 15.04.1+16.10.20160615-0ubuntu1)
36Recommends: indicator-application,36Recommends: indicator-application,
37 indicator-datetime,37 indicator-datetime,
@@ -40,7 +40,7 @@
40 indicator-session,40 indicator-session,
41 indicator-sound,41 indicator-sound,
42 network-manager-gnome,42 network-manager-gnome,
43 lightdm,43 lightdm (>= 1.20.0-0ubuntu2~),
44Suggests: lightdm-remote-session-freerdp,44Suggests: lightdm-remote-session-freerdp,
45 lightdm-remote-session-uccsconfigure,45 lightdm-remote-session-uccsconfigure,
46 remote-login-service,46 remote-login-service,
4747
=== modified file 'src/unity-greeter.vala'
--- src/unity-greeter.vala 2016-05-27 09:14:01 +0000
+++ src/unity-greeter.vala 2016-10-26 08:27:48 +0000
@@ -508,7 +508,6 @@
508 Environment.set_variable ("GTK_MODULES", "atk-bridge", false);508 Environment.set_variable ("GTK_MODULES", "atk-bridge", false);
509509
510 Pid atspi_pid = 0;510 Pid atspi_pid = 0;
511 Pid upstart_pid = 0;
512511
513 try512 try
514 {513 {
@@ -617,17 +616,17 @@
617 {616 {
618 string[] argv;617 string[] argv;
619618
620 Shell.parse_argv ("upstart --user --startup-event indicator-services-start", out argv);619 Shell.parse_argv ("systemctl --user start indicator-application indicator-power indicator-datetime indicator-keyboard indicator-session indicator-sound", out argv);
621 Process.spawn_async (null,620 Process.spawn_async (null,
622 argv,621 argv,
623 null,622 null,
624 SpawnFlags.SEARCH_PATH,623 SpawnFlags.SEARCH_PATH,
625 null,624 null,
626 out upstart_pid);625 null);
627 }626 }
628 catch (Error e)627 catch (Error e)
629 {628 {
630 warning ("Error starting Upstart for indicators: %s", e.message);629 warning ("Error starting indicators: %s", e.message);
631 }630 }
632631
633 /* Make nm-applet hide items the user does not have permissions to interact with */632 /* Make nm-applet hide items the user does not have permissions to interact with */
@@ -655,18 +654,6 @@
655654
656 debug ("Cleaning up");655 debug ("Cleaning up");
657656
658 if (upstart_pid != 0)
659 {
660 Posix.kill (upstart_pid, Posix.SIGTERM);
661 int status;
662 Posix.waitpid (upstart_pid, out status, 0);
663 if (Process.if_exited (status))
664 debug ("Upstart exited with return value %d", Process.exit_status (status));
665 else
666 debug ("Upstart terminated with signal %d", Process.term_sig (status));
667 upstart_pid = 0;
668 }
669
670 if (atspi_pid != 0)657 if (atspi_pid != 0)
671 {658 {
672 Posix.kill (atspi_pid, Posix.SIGKILL);659 Posix.kill (atspi_pid, Posix.SIGKILL);

Subscribers

People subscribed via source and target branches