close (fd);
}
}
+
+ if (seat->priv->stopping_plymouth)
+ {
+ seat->priv->stopping_plymouth = FALSE;
+ plymouth_quit (TRUE);
+ }
}
static void
if (active_vt >= vt_get_min ())
{
g_debug ("Compositor will replace Plymouth");
+ SEAT_UNITY (seat)->priv->stopping_plymouth = TRUE;
SEAT_UNITY (seat)->priv->vt = active_vt;
plymouth_deactivate ();
}
test-unity-compositor-fail-ready \
test-unity-autologin \
test-unity-login \
- test-unity-switch
+ test-unity-switch \
+ test-unity-plymouth
# test-session-exit-error
# test-greeter-no-exit
scripts/unity-compositor-fail-ready.conf \
scripts/unity-compositor-fail-start.conf \
scripts/unity-login.conf \
+ scripts/unity-plymouth.conf \
scripts/unity-switch.conf \
scripts/users.conf \
scripts/util-path.conf \
--- /dev/null
+#
+# Check Plymouth quits when Unity System compositor server is started. Plymouth is on an active VT so it handshakes with u-s-c.
+#
+
+[SeatDefaults]
+type=unity
+autologin-user=have-password1
+user-session=default
+
+[test-plymouth-config]
+enabled=true
+has-active-vt=true
+active=true
+
+#?RUNNER DAEMON-START
+
+# Check if Plymouth is running
+#?PLYMOUTH PING ACTIVE=TRUE
+#?PLYMOUTH HAS-ACTIVE-VT=TRUE
+#?PLYMOUTH DEACTIVATE
+
+# System compositor starts
+#?UNITY-SYSTEM-COMPOSITOR START VT=7
+#?*UNITY-SYSTEM-COMPOSITOR READY
+
+# Plymouth quits but keeps image in framebuffer
+#?PLYMOUTH QUIT RETAIN-SPLASH=TRUE
+
+# X server starts
+#?XSERVER-0 START MIR-ID=0
+#?XSERVER-0 INDICATE-READY
+
+# LightDM connects to X server
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Session starts
+#?SESSION-X-0 START USER=have-password1
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# System compositor switches to session
+#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=0
+
+# Cleanup
+#?*STOP-DAEMON
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0