[PATCH] [main] check for deactivated before no-splash
Scott James Remnant
scott at ubuntu.com
Thu Mar 18 14:24:31 PDT 2010
Since deactivated doesn't mean no boot splash anymore, we have to
check for the "plymouth quit" while deactivated case first.
---
src/main.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main.c b/src/main.c
index a995edb..0577d57 100644
--- a/src/main.c
+++ b/src/main.c
@@ -872,20 +872,20 @@ on_quit (state_t *state,
ply_terminal_session_close_log (state->session);
ply_trace ("unloading splash");
- if (state->boot_splash != NULL)
- {
- ply_boot_splash_become_idle (state->boot_splash,
- (ply_boot_splash_on_idle_handler_t)
- on_boot_splash_idle,
- state);
- }
- else if (state->is_inactive && !retain_splash)
+ if (state->is_inactive && !retain_splash)
{
/* We've been deactivated and X failed to start
*/
dump_details_and_quit_splash (state);
quit_program (state);
}
+ else if (state->boot_splash != NULL)
+ {
+ ply_boot_splash_become_idle (state->boot_splash,
+ (ply_boot_splash_on_idle_handler_t)
+ on_boot_splash_idle,
+ state);
+ }
else
quit_program (state);
}
--
1.7.0
More information about the plymouth
mailing list