Merge lp:~robert-ancell/lightdm/unity-plymouth-fix into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1708
Merged at revision: 1710
Proposed branch: lp:~robert-ancell/lightdm/unity-plymouth-fix
Merge into: lp:lightdm
Diff against target: 107 lines (+61/-1)
4 files modified
src/seat-unity.c (+7/-0)
tests/Makefile.am (+3/-1)
tests/scripts/unity-plymouth.conf (+49/-0)
tests/test-unity-plymouth (+2/-0)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/unity-plymouth-fix
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Robert Ancell Approve
Review via email: mp+175800@code.launchpad.net

Commit message

Add in handling of "plymouth quit" when using the compositor to send the plymouth commands to deactivate and quit.

To post a comment you must log in.
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:1708
http://jenkins.qa.ubuntu.com/job/lightdm-ci/110/
Executed test runs:
    FAILURE: http://jenkins.qa.ubuntu.com/job/lightdm-saucy-amd64-ci/26/console

Click here to trigger a rebuild:
http://s-jenkins:8080/job/lightdm-ci/110/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/seat-unity.c'
--- src/seat-unity.c 2013-07-16 22:06:06 +0000
+++ src/seat-unity.c 2013-07-19 11:09:27 +0000
@@ -146,6 +146,12 @@
146 close (fd);146 close (fd);
147 }147 }
148 }148 }
149
150 if (seat->priv->stopping_plymouth)
151 {
152 seat->priv->stopping_plymouth = FALSE;
153 plymouth_quit (TRUE);
154 }
149}155}
150156
151static void157static void
@@ -309,6 +315,7 @@
309 if (active_vt >= vt_get_min ())315 if (active_vt >= vt_get_min ())
310 {316 {
311 g_debug ("Compositor will replace Plymouth");317 g_debug ("Compositor will replace Plymouth");
318 SEAT_UNITY (seat)->priv->stopping_plymouth = TRUE;
312 SEAT_UNITY (seat)->priv->vt = active_vt;319 SEAT_UNITY (seat)->priv->vt = active_vt;
313 plymouth_deactivate ();320 plymouth_deactivate ();
314 }321 }
315322
=== modified file 'tests/Makefile.am'
--- tests/Makefile.am 2013-07-19 09:44:06 +0000
+++ tests/Makefile.am 2013-07-19 11:09:27 +0000
@@ -162,7 +162,8 @@
162 test-unity-compositor-fail-ready \162 test-unity-compositor-fail-ready \
163 test-unity-autologin \163 test-unity-autologin \
164 test-unity-login \164 test-unity-login \
165 test-unity-switch165 test-unity-switch \
166 test-unity-plymouth
166167
167# test-session-exit-error168# test-session-exit-error
168# test-greeter-no-exit169# test-greeter-no-exit
@@ -370,6 +371,7 @@
370 scripts/unity-compositor-fail-ready.conf \371 scripts/unity-compositor-fail-ready.conf \
371 scripts/unity-compositor-fail-start.conf \372 scripts/unity-compositor-fail-start.conf \
372 scripts/unity-login.conf \373 scripts/unity-login.conf \
374 scripts/unity-plymouth.conf \
373 scripts/unity-switch.conf \375 scripts/unity-switch.conf \
374 scripts/users.conf \376 scripts/users.conf \
375 scripts/util-path.conf \377 scripts/util-path.conf \
376378
=== added file 'tests/scripts/unity-plymouth.conf'
--- tests/scripts/unity-plymouth.conf 1970-01-01 00:00:00 +0000
+++ tests/scripts/unity-plymouth.conf 2013-07-19 11:09:27 +0000
@@ -0,0 +1,49 @@
1#
2# Check Plymouth quits when Unity System compositor server is started. Plymouth is on an active VT so it handshakes with u-s-c.
3#
4
5[SeatDefaults]
6type=unity
7autologin-user=have-password1
8user-session=default
9
10[test-plymouth-config]
11enabled=true
12has-active-vt=true
13active=true
14
15#?RUNNER DAEMON-START
16
17# Check if Plymouth is running
18#?PLYMOUTH PING ACTIVE=TRUE
19#?PLYMOUTH HAS-ACTIVE-VT=TRUE
20#?PLYMOUTH DEACTIVATE
21
22# System compositor starts
23#?UNITY-SYSTEM-COMPOSITOR START VT=7
24#?*UNITY-SYSTEM-COMPOSITOR READY
25
26# Plymouth quits but keeps image in framebuffer
27#?PLYMOUTH QUIT RETAIN-SPLASH=TRUE
28
29# X server starts
30#?XSERVER-0 START MIR-ID=0
31#?XSERVER-0 INDICATE-READY
32
33# LightDM connects to X server
34#?XSERVER-0 ACCEPT-CONNECT
35
36# Session starts
37#?SESSION-X-0 START USER=have-password1
38#?XSERVER-0 ACCEPT-CONNECT
39#?SESSION-X-0 CONNECT-XSERVER
40
41# System compositor switches to session
42#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=0
43
44# Cleanup
45#?*STOP-DAEMON
46#?SESSION-X-0 TERMINATE SIGNAL=15
47#?XSERVER-0 TERMINATE SIGNAL=15
48#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
49#?RUNNER DAEMON-EXIT STATUS=0
050
=== added file 'tests/test-unity-plymouth'
--- tests/test-unity-plymouth 1970-01-01 00:00:00 +0000
+++ tests/test-unity-plymouth 2013-07-19 11:09:27 +0000
@@ -0,0 +1,2 @@
1#!/bin/sh
2./src/dbus-env ./src/test-runner unity-plymouth test-gobject-greeter

Subscribers

People subscribed via source and target branches